3#define pwmSpeedMode LEDC_LOW_SPEED_MODE
15 .duty_resolution = LEDC_TIMER_10_BIT,
16 .timer_num = this->
timer,
18 .clk_cfg = LEDC_AUTO_CLK
26 .intr_type = LEDC_INTR_DISABLE,
27 .timer_sel = this->
timer,
Adds the ability to print to the display of the robot.
InfraredLED(uint8_t pin, ledc_timer_t timer, ledc_channel_t channel)
void turnOn(void)
enables selected LED
ledc_channel_config_t pwmChannel
void turnOff(void)
disables selected LED
void sendFrequency(uint16_t frequency)
starts flashing the IRLed with a specific frequency Won't stop automatically, must be stopped by call...
ledc_timer_config_t pwmTimer
void setState(bool state)
changes state of selected LED depending on the state