LED Segmentation
- Caleb Dueck
- Feb 8, 2024
- 1 min read
To make it easy to program the back wall's LEDs we have a few challenges.
We need to be able to define a segment of an LED strip to represent a single block.
We need to be able to vary how many LEDs are on in each segment.
We need to be able to easily change the color of any of the segments.
To do this I took the code written to control the button's three LED segments and made it more flexible.
Now you can pass in an array of integers that will define the boundaries of each segment.
Also, you can define a parameter off_vs_on which will change the ratio of off LEDs to on LEDs.
See the below videos for a demo of the new code in action:
Comments