contents:
pythonapp: script that computes the colors for the ambilight and sends the values over UDP/protobuf to an arduino
arduino: FastLED based arduino app that lisetns on UDP port 1234 and waits for UDP/protobuf RGB values that get applied to the led strip
protobuf: contains a docker image with needed config to compile protobuf files (optional)
How does the ambilight work:
- python script takes a screenshot 10 times per second
- resizes the image to 31*21 (amount of LEDs I have behind my screen)
- collects the borders and assigns it to an array
- sends led values encoded with protobuf to Arduino
- arduino listens on UDP for protobuf encoded messages,
- on message, applies colors to lightstrip