Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
purehunter1 opened this issue Jul 11, 2024 · 3 comments · Fixed by #10032
Closed
1 task done
Assignees
Labels
Area: Peripherals API Relates to peripheral's APIs. Status: Needs investigation We need to do some research before taking next steps on this issue Type: Feature request Feature request for Arduino ESP32

Comments

@purehunter1
Copy link

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.
@purehunter1 purehunter1 added the Type: Feature request Feature request for Arduino ESP32 label Jul 11, 2024
@VojtechBartoska VojtechBartoska added the Status: Awaiting triage Issue is waiting for triage label Jul 11, 2024
@VojtechBartoska
Copy link
Contributor

@P-R-O-C-H-Y can you please help with triage?

@P-R-O-C-H-Y P-R-O-C-H-Y added Status: Needs investigation We need to do some research before taking next steps on this issue and removed Status: Awaiting triage Issue is waiting for triage labels Jul 11, 2024
@P-R-O-C-H-Y
Copy link
Member

P-R-O-C-H-Y commented Jul 11, 2024

Hello @purehunter1, I will take a look into this option of having multiple pins connected to single LEDC channel, as it's allowed in IDF.

@VojtechBartoska VojtechBartoska added the Area: Peripherals API Relates to peripheral's APIs. label Jul 12, 2024
@purehunter1
Copy link
Author

purehunter1 commented Jul 15, 2024

@P-R-O-C-H-Y yes, it is also allowed in the Arduino environment to add pins to a channel, but there is no possibility to control the channel as it existed in the previous ESP32-Arduino core.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Peripherals API Relates to peripheral's APIs. Status: Needs investigation We need to do some research before taking next steps on this issue Type: Feature request Feature request for Arduino ESP32
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants