You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Robby Zambito fafc2c87b1 Made init function to initialize vars based on env. Created start script. Ignored binary executable. 1 year ago
.gitignore Made init function to initialize vars based on env. Created start script. Ignored binary executable. 1 year ago
README.md Initial commit 1 year ago
main.go Made init function to initialize vars based on env. Created start script. Ignored binary executable. 1 year ago
models.go Fixed output consumer to be able to listen for more than one output from the same channel. Implemented a blink function. 1 year ago
patterns.go Created a fade blink pattern. 1 year ago
start.sh Made init function to initialize vars based on env. Created start script. Ignored binary executable. 1 year ago

README.md

Pi-Lights-Controller


This program is designed to run on a Raspberry Pi to control an RGB light strip.

Design

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.