Skip to content

How many PWM channels for ESP32 using Arduino? #1256

Closed
@danlu01

Description

@danlu01

Hardware:

Board: ESP32 Dev board
Core Installation/update date: Latest of 3/23/2017
IDE name: Arduino IDE
Flash Frequency: 80Mhz
Upload Speed: ?115200?

Description:

In the ESP32 example for LEDCSoftwareFade, there's a comment hinting there are 16 LEDC_Channel starting from 0. However, any PWM assigned to channel over 8 does not work. When I search for LEDC_CHANNEL, ledc.h shows only 0-7 channels. What is the max number of PWM available? If more than 8, how do enable more than 8?

Sketch:

 // use first channel of 16 channels (started from zero)
 #define LEDC_CHANNEL_0     0

//Change the code below by your sketch
see ESP32 example LEDCSoftwareFade.ino

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions