User Tools

Site Tools


en-us_commands:reference:fdpwm

This is an old revision of the document!


Table of Contents

FDPWM()

FDPWM() outputs PWM at the specified frequency and duty cycle.

FDPWM command operation flow

void FDPWM(uint8_t pin, int32_t intHz, float Duty)

Commands

Command Arguments Return Value Operation
FDPWM(pin, intHz, Duty) uint8_t pin
int32_t intHz
float Duty
void Outputs PWM at the specified frequency and duty cycle.

Example

FDPWM(21, 1000, 50.0F);

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/fdpwm.1788785565.txt.gz · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki