I have built a special display of five reasonably bright LEDs, driven by the Core’s PWM ports and five transistors. All is well, except the LEDs and their PWM’d patterns (fading, etc.) are too bright at night.
I am looking to switch the LEDs to a much lower brightness at night, while preserving the PWM patterns themselves. This should be done for all LEDs at once, I do not want individual control. Can I use one extra digital port to toggle between a normal wire and an extra resistor or potentiometer? Is this the way to go? If so, how can I do this? Any help is greatly appreciated.
Note: I have tried to scale brightness in software, but then I’ll lose the full spectrum (255 values) of the PWM scale, and the last value before 0 is too bright as well (by the way: why?)