ModMyPi Programmable Christmas Tree examples in Go
This small program contains examples similar to the examples provided by ModMyPi for interacting with the GPIO-controlled LED Christmas Tree. Tested with a Raspberry Pi Zero 2 W running 32-bit Raspbian Lite. Using the go-rpio library to interface with the GPIO system.
Usage
Build cross-compiled from an x86 PC:
$ make build
Use scp
or another tool to move the binary to your Raspberry Pi. Then:
Run a similar pattern to the "ants" example from the original ModMyPi repo.
$ ./mmpxmas-go ants
Turn off all LEDs:
$ ./mmpxmas-go clear
Similar to "alt" example:
$ ./mmpxmas-go alt
Even and odd indicies:
$ ./mmpxmas-go mod2
Light one row at a time:
$ ./mmpxmas-go rows
Flash consistent green or red when BTC price is up or down minute-to-minute.
$ XMAS_COINMARKETCAP_KEY=your_key_here ./mmpxmas-go btc