I want to make a direction guide using green, yellow and red LEDs. The lights need to change when ever the active input1 reaches a set value, for example:
- Green when the value is lower than 12;
- Yellow when the value is higher than 11 and lower than 20;
- Red when its higher than 19.
I've been searching for a few days but I couldn't find any references.
1 By active inputs I mean, a series of buttons being pressed at the same time, if there is 29 buttons then when less then 12 of them is pressed the green light would be turned on.