Page 1 of 1

ESP32 Pin Out

Posted: Sun Dec 27, 2020 7:35 am
by NormanFick
Hi guys,

Id like to start playing with the ESP32, but the reference to the pin outs on the properties menu is completely different to the datasheets. I'm using a ESP32-WROOM Devkit with GPIO1...GPIO39, but flow code uses a PORTA and PORTB numbering system. I'd like to connect an I2C LCD module which must be connected onto GPIO21 & GPIO22 (SDA,SCL), but I have no idea which pins to connect in the properties menu to correlate to these physical pins. Can someone please assist me with the pin out naming that FC9 uses?

Many thanks...

Re: ESP32 Pin Out

Posted: Sun Dec 27, 2020 9:38 am
by medelec35
If you ignore the letters the number following represents the IO number. E.g. A.4 is GPIO4 and A.27 is GPIO27 etc.
you can just remap the LCD pins to any of the available connections.
So in your case GPIO21 = $PORTA.21 & GPIO22 = $PORTA.22

Inputs and outputs all use IO convention.

Re: ESP32 Pin Out

Posted: Mon Jan 04, 2021 10:22 pm
by mnfisher
An oddity (at least with the Heltec Wifi kit 32 is that the view target diagram is a mirror image of most (including the Heltec website) diagrams.. This makes life just that little more complicated?

Martin

Re: ESP32 Pin Out

Posted: Wed Jan 06, 2021 2:49 pm
by BenR
Hello,

Flowcode deals with ports and so to fit in the ESP32 we allocated GPIO0 - GPIO31 to PortA 0 - 31 and GPIO32 - GPIO39 to PortB 0 - 7.

Its a little confusing but thats acutally how it works inside the ESP chip too so thankfully it's not too bad.

For the component property pins if you untick use chip references then you can see the GPIO numbering.
Pins.jpg
Pins.jpg (36.82 KiB) Viewed 5724 times
I'll have a look at the Heltec Wifi kit 32 pins and see if we can get these fixed for you.