https://fabmo.de/news/defcon-ampel-die-zweite/
With the two big buttons you can switch from green to blue, orange, red and grey and back.
With the little 4 way (actually 5 way) switch you can change blink speed and duty cycle of the blink.
When the blink frequency is high enough you can use it as PWM for all connected LEDs.
The buttons are connecte to just one pin (A2/PB4). With different voltage dividers per button this
circuit measures different voltages on the conntected analogue pin. Depending on what voltage you measure
a different action is called.
Post time: Jun-16-2017