• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

how do i use multiple PWM channels with the ESP32

Q&A Forum › Category: ESP32 › how do i use multiple PWM channels with the ESP32
0 Vote Up Vote Down
Richard Marbury asked 6 years ago

what is confusing me in the setup using the arduino ide can i use

ledcSetup(pwmChannel, freq, resolution);
ledcSetup(pwmChannel01, freq, resolution);

multiple “ledcSetup”s

3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 6 years ago

Hi Richard.

Yes.
You can use multiple ledcSetup-s to set up different pwm channels.
Let me know if you have more doubts about this subject.
Regards,
Sara

0 Vote Up Vote Down
Richard Marbury answered 6 years ago

many thanks for your reply. was finding it hard to find any example code using multiple channels. now to see if i can get this thing working. Thanks Again.

0 Vote Up Vote Down
Sara Santos Staff answered 6 years ago

Ok.
Then, let us know the results.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.