Change LED brigthness on FRDM-KE06Z

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Change LED brigthness on FRDM-KE06Z

ソリューションへジャンプ
2,091件の閲覧回数
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,590件の閲覧回数
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,591件の閲覧回数
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,590件の閲覧回数
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,589件の閲覧回数
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