23 #include "ESP8266EX.h" 24 #include "../Wiring/WiringFrameworkDependencies.h" 34 #define PWM_BAD_CHANNEL 0xff 58 bool setDuty(uint8 pin, uint32 duty);
92 uint8 channels[PWM_CHANNEL_NUM_MAX];
uint32 getDuty(uint8 pin)
Get PWM duty cycle.
bool analogWrite(uint8 pin, uint32 duty)
Set PWM duty cycle.
bool setDuty(uint8 pin, uint32 duty)
Set PWM duty cycle.
Hardware pulse width modulation.
Definition: HardwarePWM.h:37
uint32 getMaxDuty()
Get the maximum duty cycle value.
HardwarePWM(uint8 *pins, uint8 no_of_pins)
Instantiate hardware PWM object.
uint32 getPeriod(void)
Get PWM period.
uint8 getChannel(uint8 pin)
Get channel number for a pin.
void setPeriod(uint32 period)
Set PWM period.