|Robby Zambito fafc2c87b1||2 years ago|
|.gitignore||2 years ago|
|README.md||2 years ago|
|main.go||2 years ago|
|models.go||2 years ago|
|patterns.go||2 years ago|
|start.sh||2 years ago|
This program is designed to run on a Raspberry Pi to control an RGB light strip.
The program takes input as a JSON string from standard input, and updates the state of the lights based on the object which was last received. Each pattern exists as a Goroutine, which is continuously outputting its updated state to a buffered channel. There is a main Goroutine which consumes the data from whichever channel passes the state for the currently selected pattern.