Skip to content

New LEDC auto channel function needs ability to manual adjust channel. #8967

Closed
@spyder0069

Description

@spyder0069

Board

ESP32

Device Description

ESP32

Hardware Configuration

transducer and backlight

Version

latest development Release Candidate (RC-X)

IDE Name

Arduino IDE

Operating System

Windows 10

Flash frequency

40Mhz

PSRAM enabled

no

Upload speed

115200

Description

The new function got rid of the setup call that allowed you to manually set your channel. The problem is my project has a audio transducer and a lcd with backlight. When using ledc for tones and controlling the backlight brightness the two interfere. This is because the esp groups two sets of eight channels and the frequency is shared amongst the set. Since it now auto adds the channels its grouping both of my devices and when the frequency changes for tone control the backlight is then off and you can't fix this without a blinking in the backlight while they are grouped. Previously I could set channel 1 for backlight and 9 for the speaker and everything was happy since the frequencies were seperated.

Sketch

ledcAttach(buzzer,2000,8);
ledcAttach(TFT_BACKLIGHT,2000,8);

Debug Message

No debug messages

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions