Skip to content

ledcWrite() has no option to write a LED-duty to a channel, but only to a specific pin #10010

Closed
@purehunter1

Description

@purehunter1

Related area

Arduino-ESP32-Core 3.0.x

Hardware specification

ESP32 (all types)

Is your feature request related to a problem?

Yes, there is a problem, migrating a program written for Arduino-ESP32-Core 2.x
The "old" Arduino-ESP32-Core 2.x provided a command "ledcWrite(LEDchan, ledBrightness);" which allowed to get a synchronized LED output duty signal on all pins attached to a specific channel.
The new 3.0.x core does not provide a similar write command to control a channel.

Describe the solution you'd like

I would like to have (again) a write command similar to the command in the 2.0.x core, or in the ESP-IDF: ledc_set_duty(ledc_mode_t speed_mode, ledc_channel_t channel, uint32_t duty).

Describe alternatives you've considered

Write a duty value to one of the pins attached to a specific channel would change the output of all pins attached to that channel.

Additional context

No response

I have checked existing list of Feature requests and the Contribution Guide

  • I confirm I have checked existing list of Feature requests and Contribution Guide.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions