Open noeldodd opened 2 months ago
Hi Noel,
Thanks for pointing out the typo. Although small, is fixed in current develop.
The channels can indeed be defined in the definition files, the point is that, as you already pointed out, these PWM channels might already be in use. So that's why this was not implemented using RGB.
If you'd like to have this functionality, please make a pull request and make a function to initialize this with the PWM channels and a function to set the value. This is indeed a nice to have!
Kind regards,
Rene
I'd like to be able to dim my projects RGB LED during the night.
Any interest in something like this? Or does it exist and I just missed it?
I looked at the source and rather than these #defines it looks like they are -D's in each boards .json definition.
Also, I have absolutely ZERO idea if those PWM channels are in use, optimal (ie minimal) freq/resolution values, or if there is a workable automatic way to let LEDC decide which to use, etc.
But I've tested this as-is, and works.
ALSO: The log statement in your smartdisplay_led_set_rgb has a typo, you output 'g' twice :)
(Edited to post correct code)