Hi everybody,
i am more the soldering type of guy rather than coding, so i've figured out a hardware based solution for a combined shutdown/startup switch with status LED, see attachment. It works perfectly fine with my script to shutdown via GPIO-26. It uses a relais to switch between RUN and GPIO on one side and red/green LED color on the other.
I'm planning to remove one USB connector and use it's 5V pin to control the "primary" relais circuit.
Does anybody have an idea about how to get three LEDs controlled based on the volume level as a simple volume indicator?
0%: no LED
1-33%: 1 LEDs
34-67%: 2 LEDs
68-100%: 3 LEDs
Any help is appreciated,
greetings,
P