Table of Contents

NPWM()

NPWM() outputs the prepared number of pulses.

NPWM command operation flow

void NPWM(uint8_t pin)

Commands

Command Arguments Return Value Operation
NPWM(pin) uint8_t pin void Outputs the prepared number of pulses.

Example

void setup()
{
    NPWM_BEGIN(0, 1000, 50.0F, 100);  // Prepare pulse output with the specified frequency, duty cycle and pulse count.
}
 
void loop()
{
    NPWM(0);  // Output the configured number of pulses.
}

Precautions

Built-in Commands in the Same Category

← Built-in Command List