{"id":22836013,"url":"https://github.com/tinygo-org/gobadge","last_synced_at":"2025-07-22T14:33:17.774Z","repository":{"id":53839409,"uuid":"377182281","full_name":"tinygo-org/gobadge","owner":"tinygo-org","description":"TinyGo powered badge using Adafruit Pybadge Hardware","archived":false,"fork":false,"pushed_at":"2025-05-04T13:51:21.000Z","size":82098,"stargazers_count":38,"open_issues_count":3,"forks_count":24,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-06-06T03:43:20.815Z","etag":null,"topics":["adafruit","badge","golang","hacktoberfest","tinygo"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"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":null,"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":"2021-06-15T13:59:29.000Z","updated_at":"2025-05-04T13:51:26.000Z","dependencies_parsed_at":"2023-02-18T15:45:23.190Z","dependency_job_id":"a7074ad8-25d8-4b5f-922f-2ad3eff5953c","html_url":"https://github.com/tinygo-org/gobadge","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tinygo-org/gobadge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinygo-org%2Fgobadge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinygo-org%2Fgobadge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinygo-org%2Fgobadge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinygo-org%2Fgobadge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tinygo-org","download_url":"https://codeload.github.com/tinygo-org/gobadge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinygo-org%2Fgobadge/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266510588,"owners_count":23940673,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":["adafruit","badge","golang","hacktoberfest","tinygo"],"created_at":"2024-12-12T23:00:50.529Z","updated_at":"2025-07-22T14:33:17.759Z","avatar_url":"https://github.com/tinygo-org.png","language":"Go","readme":"# GoBadge\n\nTinyGo powered badge using the Adafruit Pybadge hardware aka \"GoBadge\".\n\nhttps://www.adafruit.com/product/4200\n\n# How to install\n\n- Install TinyGo using the instructions from https://tinygo.org\n\n- Clone this repo\n\n- Change directories into the directory with the repo\n\n- Connect your Gobadge to your computer using a USB cable\n\n- Make sure to turn on the badge, flip the switch at the top of the board next to `select` to the `on` position. The screen should light up and might be showing a sine wave display (if it was not already flashed to something else).\n![location of on off switch](assets/on_off.jpg \"on off switch location\")\n\n***Important Note***\n\nThe first time you flash your new GoBadge, you will probably need to double-click the \"Reset\" button located on the back of the badge in order to put the badge into bootloader mode. This will only need to be done once on brand new badges, after that you can flash it normally.\n\n- Run this command to compile and flash the code to your Gobadge:\n\nIf you are running Mac or Linux, or have make installed you can run the following:\n\n```\nmake flash\n```\n\notherwise run tinygo directly\n\n```\ntinygo flash -target gobadge .\n```\n\nNote: if you get a `permision denied` error; please, consult this [page](https://tinygo.org/docs/guides/tinygo-flash-errors/) for possible solution. You many need to restart the computer; afterward to get the group to stick.\n\n- To display a conference logo on your badge, use one of the following targets (depending on GC for Europe, UK, or US):\n```\nmake flash-gceu\nmake flash-gcuk\nmake flash-gcus\n```\n\n- To customize the Gobadge with your own name and information, use the `NAME`, `TITLE1`, and `TITLE2` variables like this:\n\n```\nmake flash-gcus NAME=\"@TinyGolang\" TITLE1=\"Go compiler\" TITLE2=\"small places\"\n```\n\n# Add a new logo\n\n- Create an image with a 160x128 pixels size, copy it into `cmd/assets` folder.  \nFor the moment only jpeg images are supported.  \n- In `cmd/main.go` add the path to your file here\n\n```go\nconst (\ngopherconEU22Logo = \"./cmd/assets/gopherconeu-2022.jpg\"\ngopherconUK22Logo = \"./cmd/assets/gopherconuk-2022.jpg\"\ngopherconUS22Logo = \"./cmd/assets/gopherconus-2022.jpg\"\nyourPathLogoHere = \"./your/path/to/the/logo\"\n)\n```\n\n- Add the corresponding flag to the conf map:\n\n```go\nfunc confs() map[string]string {\n\treturn map[string]string{\n\t\t\"gceu22\"    : gopherconEU22Logo,\n\t\t\"gcuk22\"    : gopherconUK22Logo,\n\t\t\"gcus22\"    : gopherconUS22Logo,\n\t\t\"flagLogo\"  : yourPathLogoHere,\n\t}\n}\n```\n\nAdd a new target to the Makefile:\n\n```bash\nflash-yourconf:\n\tgo run cmd/main.go -conf=flagLogo\n\ttinygo flash -target gobadge .\n```\n\nYou can run:\n\n```bash\nmake flash-yourconf\n```\n\nIt will use `cmd/logos/logo-template.txt` to generate the image into a `[]color.RGBA`.\nThen it is stored in variable in `logo.go` file.\n\n```go\npackage main\n\nimport \"image/color\"\n\nvar logoRGBA = []color.RGBA{ {255, 255, 255} }\n```\n\nAfter the image has been generated, the make command will flash it to the board.\n\n\n👏 Congratulations! It is now a GoBadge.\n","funding_links":[],"categories":["Wireless Communication"],"sub_categories":["WASI and WASM Unknown"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinygo-org%2Fgobadge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftinygo-org%2Fgobadge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinygo-org%2Fgobadge/lists"}