LEDC output is not usable on the lolin_c3_mini.
My configuration contains:
output:
- platform: ledc
pin: D6
id: buzzer
but on boot, I get the following error:
[D][ledc.output:041]: Calculating resolution bit-depth for frequency 1000.000000
[D][ledc.output:046]: Resolution calculated as 16
[E][esp32-hal-ledc.c:60] ledcSetup(): No more LEDC channels available! (maximum 6) or bit width too big (maximum 14)
I have tried different GPIO pins, manually specifying the channel, and manually raising and lowering the frequency but no combination seems to work.
I suspect some of the issue is because the lolin_c3_mini has an on-board WS2812 which I have configured as an output with neopixelbus. However surely there is a way to get a single additional LEDC output working, even at low resolution.
For what it's worth, I'm trying to use this ledc output as a rtttl buzzer output.
Which version of ESPHome has the issue?
2022.12.3
What type of installation are you using?
pip
Which version of Home Assistant has the issue?
N/A
What platform are you using?
ESP32
Board
lolin_c3_mini
Component causing the issue
ledc
Example YAML snippet
output:
- platform: ledc
pin: D6
id: buzzer
Anything in the logs that might be useful for us?
[D][ledc.output:041]: Calculating resolution bit-depth for frequency 1000.000000
[D][ledc.output:046]: Resolution calculated as 16
[E][esp32-hal-ledc.c:60] ledcSetup(): No more LEDC channels available! (maximum 6) or bit width too big (maximum 14)
The problem
LEDC output is not usable on the lolin_c3_mini. My configuration contains:
but on boot, I get the following error:
I have tried different GPIO pins, manually specifying the channel, and manually raising and lowering the frequency but no combination seems to work.
I suspect some of the issue is because the lolin_c3_mini has an on-board WS2812 which I have configured as an output with neopixelbus. However surely there is a way to get a single additional LEDC output working, even at low resolution. For what it's worth, I'm trying to use this ledc output as a rtttl buzzer output.
Which version of ESPHome has the issue?
2022.12.3
What type of installation are you using?
pip
Which version of Home Assistant has the issue?
N/A
What platform are you using?
ESP32
Board
lolin_c3_mini
Component causing the issue
ledc
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response