Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
DriverPWM Class Reference

Pulse width modulator driver class. More...

#include <DriverPWM.h>

Public Member Functions

 DriverPWM ()
 PWM driver class. More...
void initialize ()
 Initialise PWM driver. More...
void analogWrite (uint8_t pin, int duty)
 Set PWM output. More...
void noAnalogWrite (uint8_t pin)
 Disable PWM on GPIO. More...

Static Protected Member Functions

static void IRAM_ATTR processingStatic (void *arg)

Detailed Description

Pulse width modulator driver class.

Constructor & Destructor Documentation

DriverPWM::DriverPWM ( )

PWM driver class.

Member Function Documentation

void DriverPWM::analogWrite ( uint8_t  pin,
int  duty 

Set PWM output.

pinGPIO to set
dutyPWM duty
Describe how duty affects output
void DriverPWM::initialize ( )

Initialise PWM driver.

Call this function once before using other PWM driver functions
void DriverPWM::noAnalogWrite ( uint8_t  pin)

Disable PWM on GPIO.

pinGPIO on which to disable PWM