{"id":16440254,"url":"https://github.com/soypat/tinygo-arduino-examples","last_synced_at":"2026-05-20T05:38:42.333Z","repository":{"id":57637547,"uuid":"347182057","full_name":"soypat/tinygo-arduino-examples","owner":"soypat","description":"Compilation of LCD screen, ADC, and output examples.","archived":false,"fork":false,"pushed_at":"2021-11-18T22:43:37.000Z","size":27,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-08T12:40:33.837Z","etag":null,"topics":["arduino","arduino-uno","arduino-uno-board","arduino-uno-r3","embedded","embedded-systems","go","golang","tinygo"],"latest_commit_sha":null,"homepage":"","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/soypat.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}},"created_at":"2021-03-12T19:54:07.000Z","updated_at":"2023-05-24T07:11:47.000Z","dependencies_parsed_at":"2022-08-30T16:01:37.199Z","dependency_job_id":null,"html_url":"https://github.com/soypat/tinygo-arduino-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soypat%2Ftinygo-arduino-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soypat%2Ftinygo-arduino-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soypat%2Ftinygo-arduino-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soypat%2Ftinygo-arduino-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soypat","download_url":"https://codeload.github.com/soypat/tinygo-arduino-examples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240766672,"owners_count":19854114,"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","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":["arduino","arduino-uno","arduino-uno-board","arduino-uno-r3","embedded","embedded-systems","go","golang","tinygo"],"created_at":"2024-10-11T09:11:39.290Z","updated_at":"2026-05-20T05:38:37.313Z","avatar_url":"https://github.com/soypat.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tinygo-arduino-examples\nCompilation of LCD screen, ADC, and output examples.\n\n## It is suggested you run tinygo with Go 1.15 until [#44557](https://github.com/golang/go/issues/44557) is fixed\n\n## Run an example\nTo run any example navigate to the example directory in command line\n\n```console\ncd lcdscreen_adc\n```\nThen flash the arduino. You must know the port it's on. On windows they typically are of the form `COM1` through `COM4`. On Linux the port may look something like `/dev/ttyACM0` or `/dev/ttyUSB0`.\n\n```console\ntinygo flash -target=arduino -port=/dev/ttyUSB0 .\n```\n\nIf everything goes OK, some progress bars should pop up and the process should end with a thankful message:\n\n```console\navrdude: verifying ...\navrdude: 7036 bytes of flash verified\n\navrdude done.  Thank you.\n```\n\nYou now have tinygo running on your Arduino!\n\n## To create your own \"sketch\"\n\n1. Create a directory and create a `.go` file of any name. Say we make `twister.go`. \n2. Create the module. Run `go mod init my_awesome_module` (with any module name you find appropiate for your program)\n3. Start coding in this directory. You may create more files if you wish to distribute you functions\n    * To enable intellisense on VSCode follow the [instructions on IDE integration on tinygo.org](https://tinygo.org/ide-integration/). You basically have to create the same [`.vscode/settings.json`](.vscode/settings.json) file this repo has but with you own `GOROOT` Path (this may differ between installations)\n4. Run `go mod tidy` when done programming. And flash your sketch with \n\n```console\ntinygo flash -target=arduino -port=/dev/ttyUSB0 .\n```\n\n## Install the serial monitor\n\n```shell\ngo install github.com/soypat/tinygo-arduino-examples/monitor@latest\n```\n\nThe executable will be installed to your GOBIN directory. To call from shell make sure GOBIN is in your PATH.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoypat%2Ftinygo-arduino-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoypat%2Ftinygo-arduino-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoypat%2Ftinygo-arduino-examples/lists"}