I'm trying to change the brigthness of the RGB Led on my FRDM-KE06Z board. I have used the processor expert to configure the LED, and got to turn them on and off. I have also found the function LED1_SetRatio16(), which should change the LED brightness depending on the value you put in the function, but it just turn the LED on and off, there is no degrees in between. Can anyone help me to correctly do it?
Solved! Go to Solution.
I have enabled the PWM in LED properties, but the command I wanna use still doesn't work. I wanna use the "SetRatio16();" command, but it just turns the led on or off, there is no dimming. I have configured the PWM as followed:
Can you help me out?
See attached KDS demo project (as well on GitHub here: mcuoneclipse/Examples/KDS/FRDM-KE06Z/FRDM-KE06Z at master · ErichStyger/mcuoneclipse · GitHub )
It dimms the red LED.
I hope this helps,
Erich