13 #include "../Wiring/WiringFrameworkDependencies.h" 14 #include "../Wiring/WVector.h" 18 #ifndef _SMING_CORE_PWM_H_ 19 #define _SMING_CORE_PWM_H_ 50 static void IRAM_ATTR processingStatic(
void *arg);
79 void IRAM_ATTR high();
85 void config(
int duty, uint32_t basePeriod);
90 __inline
int id() {
return pin; }
98 static void IRAM_ATTR processingStatic(
void *arg);
Pulse width modulator channel class.
Definition: DriverPWM.h:60
Pulse width modulator driver class.
Definition: DriverPWM.h:24
__inline int id()
Get the GPIO used by this PWM channel.
Definition: DriverPWM.h:90
void analogWrite(uint8_t pin, int duty)
Set PWM output.
DriverPWM EspPWM
Global instance of PWM driver object.
DriverPWM()
PWM driver class.
void initialize()
Initialise PWM driver.
void noAnalogWrite(uint8_t pin)
Disable PWM on GPIO.