HardwarePWM.h
Go to the documentation of this file.
#define PWM_CHANNEL_NUM_MAX
Definition: Esp32/Components/driver/include/driver/pwm.h:17
bool analogWrite(uint8_t pin, uint32_t duty)
Set PWM duty cycle.
Definition: HardwarePWM.h:52
uint32_t getMaxDuty()
Get the maximum duty cycle value.
Definition: HardwarePWM.h:116
bool setDuty(uint8_t pin, uint32_t duty, bool update=true)
Set PWM duty cycle.
Definition: HardwarePWM.h:73
HardwarePWM(uint8_t *pins, uint8_t no_of_pins)
Instantiate hardware PWM object.
virtual ~HardwarePWM()
bool setDutyChan(uint8_t chan, uint32_t duty, bool update=true)
Set PWM duty cycle for a channel.