ESP32S3 LEDC for low frequency
Posted: Thu Aug 29, 2024 12:16 am
Hi everyone,
I would like to e.g. blink an LED utilizing the LEDC peripheral.
When saying blinking an LED, I'm referring to something like 500 ms on, 500 ms off, i.e. 1 second PWM period with 50 % duty cycle.
Using ledcAttach I can't get much below a frequency of 200 Hz.
I am aware that documentation of the Arduino LEDC explicitly says, that it's mainly intended for controlling LED brightness. But, it would simply be so extremely convenient and elegant to have all of that purely managed by hardware. Blinking, on, off, fading purely controlled by LEDC.
Is this possible and I've just missed something, or does LEDC on the Arduino core simply not offer the possibility of ~1 Hz frequencies?
I would like to e.g. blink an LED utilizing the LEDC peripheral.
When saying blinking an LED, I'm referring to something like 500 ms on, 500 ms off, i.e. 1 second PWM period with 50 % duty cycle.
Using ledcAttach I can't get much below a frequency of 200 Hz.
I am aware that documentation of the Arduino LEDC explicitly says, that it's mainly intended for controlling LED brightness. But, it would simply be so extremely convenient and elegant to have all of that purely managed by hardware. Blinking, on, off, fading purely controlled by LEDC.
Is this possible and I've just missed something, or does LEDC on the Arduino core simply not offer the possibility of ~1 Hz frequencies?