/onion-golang-blink

Onion Omega 2 + Golang = ❤️ Code for the tutorial on how to get started with Golang and Onion Omega

Primary LanguageGo

Onion Omega 2 + Golang

demo

demo2

Code for the blog post on how to get started with Golang and Onion Omega 2.

Pre-requisites

Hardware

  • Onion Omega 2
  • Any LED
  • 100 ohm resistor
  • Jumpers

Software

  • Golang installed

Schematic

Fotos

Running and playing with it

To cross compile this project to run in the Onion Omega 2, follow the steps:

  1. Run make build to generate the binary file blink.
  2. Copy the binary to the Omega2.
  3. Run it with ./blink on the device.
  4. Access http://omega-XXXX.local:9090, exchanging XXXX for the last 4 digits of the Mac address of your Omega2.
  5. Have Fun.