en-us_commands:reference:pwm_reset
Table of Contents
PWM_RESET()
Commands
| Command | Arguments | Return Value | Operation |
|---|---|---|---|
PWM_RESET() | None | void | Resets all PWM states managed by the core. |
Example
void setup() { PWM_RESET(); // Reset all PWM states managed by the core. } void loop() { PWM(5, 127); // 8bit duty FDPWM(6, 1000, 50.0); // 1kHz, 50% }
Precautions
- Check product-specific PWM pins and timer sharing.
- Changing frequency or resolution may also affect other channels on the same timer.
- Ensure the connected load is safe when stopping or resetting outputs.
Built-in Commands in the Same Category
en-us_commands/reference/pwm_reset.txt · Last modified: by 127.0.0.1
