- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Solved! Go to Solution.
- Labels:
-
PSoC 6 MCU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Hari,
Thanks very much!