User Tools

Site Tools


en-us_commands:reference:pwmoff

This is an old revision of the document!


Table of Contents

PWMOFF()

PWMOFF() stops or re-enables PWM output on the specified pin.

PWMOFF command operation flow

void PWMOFF(uint8_t pin, bool POff)

Commands

Command Arguments Return Value Operation
PWMOFF(pin, POff) uint8_t pin
bool POff
void Stops or re-enables PWM output on the specified pin.

Example

PWMOFF(21, true);

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 Command List

en-us_commands/reference/pwmoff.1788785569.txt.gz · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki