The RGB LEDS are connected to PWM outputs. So its easy to PWM them. An early version had a DIM function that dimmed the leds or let them go at 100%. The DIM used a value around 240-250 instead of 255 (I think I used analogueWrite( rled, 255 - dimval );
This worked fine for the Blue and Red LEDS, but the Green LED just could not get it right regardless of value. I think the green led has a different threshold value making it either ON or OFF, so it was too difficult to get it reliably DIM.
So I removed this from the release.
I used a KEYES-016 RGB module. perhaps using individual LEDS with limiting resistors might work better, I dont know, not worth the effort for me to try now.
The reason I looked at the dim feature was to just limit the LED brightness at the scope level, perhaps a little bit of translucent tape over the led is just as effective, then again, one doesnt really need the rgb leds for the controller to work anyhow.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
On the subject of dimming the RGB LEDS
The RGB LEDS are connected to PWM outputs. So its easy to PWM them. An early version had a DIM function that dimmed the leds or let them go at 100%. The DIM used a value around 240-250 instead of 255 (I think I used analogueWrite( rled, 255 - dimval );
This worked fine for the Blue and Red LEDS, but the Green LED just could not get it right regardless of value. I think the green led has a different threshold value making it either ON or OFF, so it was too difficult to get it reliably DIM.
So I removed this from the release.
I used a KEYES-016 RGB module. perhaps using individual LEDS with limiting resistors might work better, I dont know, not worth the effort for me to try now.
The reason I looked at the dim feature was to just limit the LED brightness at the scope level, perhaps a little bit of translucent tape over the led is just as effective, then again, one doesnt really need the rgb leds for the controller to work anyhow.