Hi Nuno,
I recommend you to check the sctimer_multi_state_pwm example from the SDK. I think this is similar to what you are trying to accomplish. In the example when the user presses a switch the PWM signal will be seen from Out 2 and when user presses the switch again PWM signal on Out 2 will turn off. The PWM signal from Out 4 will remain active all the time.
Have a great day,
Felipe
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored. Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
------------------------------------------------------------------------------