SparkFun Forums 

Where electronics enthusiasts find answers.

User avatar
By guibot
#207302
Hi! I am designing a breakout board for the ESP32 Thing Plus, but I still don't have the board with me, and looking to the graphical datasheet it is not clear which of the pins are PWM, could you clarify this for me?
Image
Thanks in advance!
User avatar
By guibot
#207303
Another thing that it is not clear is the ADC pinout, by this I mean, on the right side it is clear the A0, A1, A2, A3, A4, A5.
On the left side the ADC pin numbers are not clear..

Any hint regarding this will be a great help!!
User avatar
By TS-Chris
#207556
Hi guibot!

All the pins on the ESP32 WROOM are PWM capable except for module pin#9 (which is pin 33 on our board). Anything in purple on the graphical datasheet is an analog pin and you only need to specify it by it's pin name. For example, if you wanted an analog read on pin 13, this should do the trick for you.
Code: Select all
analogRead(13)
User avatar
By TS-Mark
#207578
One quick add-on to Chris's reply. The Arduino Core does not have analogWrite working just yet. They are working on it but as of right now that function does not work. The folks at espressif have a couple of alternative options listed in the "Development Status" section of the README in that GitHub repository I linked above.