ESP32 Pin Out

For general Flowcode discussion that does not belong in the other sections.
Post Reply
NormanFick
Posts: 1
http://meble-kuchenne.info.pl
Joined: Fri Dec 11, 2020 12:18 pm

ESP32 Pin Out

Post 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...

medelec35
Matrix Staff
Posts: 1471
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 516 times
Been thanked: 474 times

Re: ESP32 Pin Out

Post 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.
Martin

mnfisher
Valued Contributor
Posts: 1007
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 106 times
Been thanked: 519 times

Re: ESP32 Pin Out

Post 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

BenR
Matrix Staff
Posts: 1760
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 447 times
Been thanked: 607 times

Re: ESP32 Pin Out

Post 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 2372 times
I'll have a look at the Heltec Wifi kit 32 pins and see if we can get these fixed for you.

Post Reply