alvarowolfx / onion-golang-blink

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

Home Page:https://medium.com/@alvaroviebrantz/getting-started-with-onion-omega2-and-golang-d625bb20554

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

https://medium.com/@alvaroviebrantz/getting-started-with-onion-omega2-and-golang-d625bb20554


Languages

Language:Go 95.6%Language:Makefile 4.4%