erropix / ESP32_AnalogWrite

Provides an analogWrite polyfill for ESP32 using the LEDC functions
MIT License
159 stars 36 forks source link

what pins can I use? #3

Closed BramB-1952444 closed 5 years ago

BramB-1952444 commented 5 years ago

I thought the esp32 can use almost all pins for PWM but I made a program that needs 9 pins to analogWrite to. What pins can I use for this? Some are not working. I am using the WiFi library.

erropix commented 5 years ago

@8ram You need to search for pin out schematic of your development board model, you can use all the pins marked with PWM wave symbol, for WROMM32:

esp32-pinout-chip-ESP-WROOM-32

BramB-1952444 commented 5 years ago

I am trying to use 9 RGB leds can it use all 16 channels or only 8 like I read on some forums?

erropix commented 5 years ago

If you look at the picture above, there is 32 pins that support pwm signal, but there is only 16 channels, some pins get disable as you use other features, and some pins have signal at boot or during upload etc..

There is a good article here https://randomnerdtutorials.com/esp32-pinout-reference-gpios/ it have a lot of details