PSoC6 Smart I/O breathing LED

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
MaWo_2683956
Level 1
Level 1
5 questions asked First reply posted First question asked

I'm using the PSoC6  Smart I/O to generate the breathing LED, but my LED has 3 states(breathing/ on /off), now my LED could breathing, but how to let the LED keep on or keep off after breathing? 

How to change the LED state between on/off and breathing?

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
Hari
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hi @MaWo_2683956,

 

To turn on/off the LEDs, you can simply configure the LUTs connecting the pin such that they are always 0 or always 1. To reconfigure the LUT, you can use SmartIO_LUT_ConfigureMode API. 

 

I am attaching a sample code with this project that shows the same where the mode toggles every 4 seconds. 

 

Best regards, 
Hari

View solution in original post

0 Likes
2 Replies
lock attach
Attachments are accessible only for community members.
Hari
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hi @MaWo_2683956,

 

To turn on/off the LEDs, you can simply configure the LUTs connecting the pin such that they are always 0 or always 1. To reconfigure the LUT, you can use SmartIO_LUT_ConfigureMode API. 

 

I am attaching a sample code with this project that shows the same where the mode toggles every 4 seconds. 

 

Best regards, 
Hari

0 Likes

Hi Hari,

Thanks very much!

0 Likes