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

Public Member Functions

 HardwarePWM (uint8 *pins, uint8 no_of_pins)
 
bool analogWrite (uint8 pin, uint32 duty)
 Set PWM duty cycle. More...
 
bool setDuty (uint8 pin, uint32 duty)
 Set PWM duty cycle. More...
 
uint32 getDuty (uint8 pin)
 Get PWM duty cycle. More...
 
void setPeriod (uint32 period)
 Set PWM period. More...
 
uint32 getPeriod (void)
 Get PWM period. More...
 
uint8 getChannel (uint8 pin)
 Get channel number for a pin. More...
 
uint32 getMaxDuty ()
 Get the maximum duty cycle value. More...