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...
ESP32 Pin Out
-
- Posts: 1
- http://meble-kuchenne.info.pl
- Joined: Fri Dec 11, 2020 12:18 pm
-
- Matrix Staff
- Posts: 1474
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 522 times
- Been thanked: 476 times
Re: ESP32 Pin Out
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.
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
-
- Valued Contributor
- Posts: 1007
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 106 times
- Been thanked: 519 times
Re: ESP32 Pin Out
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
Martin
-
- Matrix Staff
- Posts: 1760
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 447 times
- Been thanked: 607 times
Re: ESP32 Pin Out
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.
I'll have a look at the Heltec Wifi kit 32 pins and see if we can get these fixed for you.
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.
I'll have a look at the Heltec Wifi kit 32 pins and see if we can get these fixed for you.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel