Change LED brigthness on FRDM-KE06Z

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Change LED brigthness on FRDM-KE06Z

跳至解决方案
2,158 次查看
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?

标签 (1)
1 解答
1,657 次查看
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 项奖励
回复
3 回复数
1,658 次查看
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 项奖励
回复
1,657 次查看
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 项奖励
回复
1,656 次查看
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