Change LED brigthness on FRDM-KE06Z

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Change LED brigthness on FRDM-KE06Z

Jump to solution
1,047 Views
alissonporto
Contributor III

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?

Labels (1)
1 Solution
546 Views
BlackNight
NXP Employee
NXP Employee

Have you enabled 'PWM' in the LED properties?

See

PWM and Shell for a LED | MCU on Eclipse

Erich

View solution in original post

0 Kudos
3 Replies
547 Views
BlackNight
NXP Employee
NXP Employee

Have you enabled 'PWM' in the LED properties?

See

PWM and Shell for a LED | MCU on Eclipse

Erich

0 Kudos
546 Views
alissonporto
Contributor III

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:

help1.PNG.pnghelp2.PNG.png

Can you help me out?

0 Kudos
546 Views
BlackNight
NXP Employee
NXP Employee

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