{"id":22835988,"url":"https://github.com/tinygo-org/tinygba","last_synced_at":"2026-03-03T23:00:59.055Z","repository":{"id":97420678,"uuid":"228088137","full_name":"tinygo-org/tinygba","owner":"tinygo-org","description":"Tools and helpers for developing GBA programs using TinyGo.","archived":false,"fork":false,"pushed_at":"2023-12-05T14:54:53.000Z","size":74,"stargazers_count":23,"open_issues_count":2,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-08-10T21:34:32.896Z","etag":null,"topics":["gameboy-advance","golang","tinygo"],"latest_commit_sha":null,"homepage":"https://tinygo.org","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tinygo-org.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-12-14T20:59:28.000Z","updated_at":"2025-07-26T08:30:19.000Z","dependencies_parsed_at":"2025-08-10T21:31:48.451Z","dependency_job_id":"3fbc7e4d-ebbd-436a-a34a-b74c1a920368","html_url":"https://github.com/tinygo-org/tinygba","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tinygo-org/tinygba","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinygo-org%2Ftinygba","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinygo-org%2Ftinygba/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinygo-org%2Ftinygba/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinygo-org%2Ftinygba/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tinygo-org","download_url":"https://codeload.github.com/tinygo-org/tinygba/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinygo-org%2Ftinygba/sbom","scorecard":{"id":887515,"data":{"date":"2025-08-11","repo":{"name":"github.com/tinygo-org/tinygba","commit":"0d73574106af03c65b7374adab48d8cf6669940a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/28 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T10:33:06.042Z","repository_id":97420678,"created_at":"2025-08-24T10:33:06.042Z","updated_at":"2025-08-24T10:33:06.042Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30064779,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T18:21:05.932Z","status":"ssl_error","status_checked_at":"2026-03-03T18:20:59.341Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gameboy-advance","golang","tinygo"],"created_at":"2024-12-12T23:00:49.778Z","updated_at":"2026-03-03T23:00:59.039Z","avatar_url":"https://github.com/tinygo-org.png","language":"Go","readme":"# tinygba\n\n![gopher](./images/gopher.png)\n\nTools and helpers for developing GBA programs using TinyGo.\n\n![snake](./images/snake.gif)\n\nStill highly experimental and subject to sudden changes.\n\n## Emulator\n\nYou can run your TinyGo programs using the `mGBA` emulator:\n\nhttps://mgba.io/\n\nYou will probably need to create a symlink to whichever executable you choose to install. For example, if you install the Qt based emulator:\n\n```shell\nsudo ln -s /usr/bin/mgba-qt /usr/bin/mgba\n```\n\n## How to use\n\n```go\npackage main\n\nimport (\n\t\"machine\"\n\n\t\"image/color\"\n\n\t\"tinygo.org/x/tinygba\"\n)\n\nvar (\n\t// Colors\n\tblack = color.RGBA{}\n\twhite = color.RGBA{255, 255, 255, 255}\n\tgreen = color.RGBA{0, 255, 0, 255}\n\tred   = color.RGBA{255, 0, 0, 255}\n\n\t// Google colors\n\tgBlue   = color.RGBA{66, 163, 244, 255}\n\tgRed    = color.RGBA{219, 68, 55, 255}\n\tgYellow = color.RGBA{244, 160, 0, 255}\n\tgGreen  = color.RGBA{15, 157, 88, 255}\n)\n\nfunc main() {\n\tmachine.Display.Configure()\n\n\ttinygba.FillScreen(black)\n\n\tfor {\n\t\ttinygba.WaitForVBlank()\n\n\t\tupdate()\n\t}\n}\n\nfunc update() {\n\tkey := tinygba.ReadButtons()\n\n\tswitch {\n\tcase tinygba.ButtonStart.IsPushed(key):\n\t\ttinygba.FillScreen(black)\n\n\tcase tinygba.ButtonSelect.IsPushed(key):\n\t\ttinygba.FillScreen(white)\n\n\tcase tinygba.ButtonRight.IsPushed(key):\n\t\ttinygba.FillScreen(green)\n\n\tcase tinygba.ButtonLeft.IsPushed(key):\n\t\ttinygba.FillScreen(red)\n\n\tcase tinygba.ButtonDown.IsPushed(key):\n\t\ttinygba.FillScreen(gBlue)\n\n\tcase tinygba.ButtonUp.IsPushed(key):\n\t\ttinygba.FillScreen(gRed)\n\n\tcase tinygba.ButtonA.IsPushed(key):\n\t\ttinygba.FillScreen(gYellow)\n\n\tcase tinygba.ButtonB.IsPushed(key):\n\t\ttinygba.FillScreen(gGreen)\n\n\t}\n}\n```\n\nRun the code:\n\n```\ntinygo run -target gameboy-advance ./examples/snake\n```\n\n## Roadmap\n\n- [ ] Display Control (https://problemkaputt.de/gbatek.htm#lcdvramoverview)\n\t- [X] BG Mode 0\n\t- [ ] BG Mode 1\n\t- [ ] BG Mode 2\n\t- [X] BG Mode 3\n\t- [ ] BG Mode 4\n\t- [ ] BG Mode 5\n\n- [ ] OBJ (https://problemkaputt.de/gbatek.htm#lcdobjoverview)\n\n- [ ] Pallettes (https://problemkaputt.de/gbatek.htm#lcdcolorpalettes)\n\n- [ ] Sound (https://problemkaputt.de/gbatek.htm#gbasoundcontroller)\n\t- [ ] Sound Channel 1\n\t- [X] Sound Channel 2\n\t- [ ] Sound Channel 3\n\t- [ ] Sound Channel 4\n\t- [ ] Sound Channel DMA\n\n- [ ] Interrupts (https://problemkaputt.de/gbatek.htm#gbainterruptcontrol)\n","funding_links":[],"categories":["Gaming"],"sub_categories":["Instrumentation and control with sensors and actuators"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinygo-org%2Ftinygba","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftinygo-org%2Ftinygba","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinygo-org%2Ftinygba/lists"}