PWM deinit (pwm.deinit)¶
What it does: Frees the PWM channel and stops generating the PWM signal.

Inputs¶
- Field
ID: PWM channel you want to terminate.
Output¶
- none (command block).
When to use it¶
- When ending work with PWM peripherals.
- Before switching the pin to another mode.
Tips and pitfalls¶
- After deinit, the PWM needs to be re-initialized with the
pwmblock. - Make sure the output is in a safe state after turning off the PWM.
Generated Python example¶
pwm22.deinit()