Replies: 1 comment 5 replies
-
If the code is written like this, the PWM pin will remain at a continuous high level, and using the digitalWrite function will also be ineffective.
|
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone. I used a hardware timer to generate PWM. During the initialization of PWM, the PWM starts to output by default. Is there any way to solve this problem?
this is my code
As long as you call MyTim->setPWM(channel, TRIAC_PIN, TRIAC_PIN, 20, NULL, Compare_IT_callback); the PWM output will be directly enabled.
Beta Was this translation helpful? Give feedback.
All reactions