HardwarePWM.h
Go to the documentation of this file.
#define PWM_CHANNEL_NUM_MAX
Definition: Esp32/Components/driver/include/driver/pwm.h:15
uint32_t getMaxDuty() const
Get the maximum duty cycle value.
Definition: HardwarePWM.h:140
bool analogWrite(uint8_t pin, uint32_t duty)
Set PWM duty cycle.
Definition: HardwarePWM.h:76
bool setDuty(uint8_t pin, uint32_t duty, bool update=true)
Set PWM duty cycle.
Definition: HardwarePWM.h:97
HardwarePWM(const 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.
1.9.1