Code for the blog post on how to get started with Golang and Onion Omega 2.
Hardware
- Onion Omega 2
- Any LED
- 100 ohm resistor
- Jumpers
Software
- Golang installed
To cross compile this project to run in the Onion Omega 2, follow the steps:
- Run
make build
to generate the binary fileblink
. - Copy the binary to the Omega2.
- Run it with
./blink
on the device. - Access http://omega-XXXX.local:9090, exchanging XXXX for the last 4 digits of the Mac address of your Omega2.
- Have Fun.