Page 1 of 1

ESP32 PINs in PlattformIO

Posted: Wed Jul 15, 2020 6:08 am
by wolf70
Hi,

I have a ESP32 DEVKIT from AZDelivery: https://cdn.shopify.com/s/files/1/1509/ ... 2146266271

Now I try to create a little sketch where I use a Nokia 5110 Display.
In PlattformIO I selected the DOIT ESP32 DEVKIT V1 in PlattformIO.
I think I understand that PINs are defined in pins_arduino.h.
But I am not sure if the PINs are compatible with my board.

My test sketch doesn't work with this:
U8G2_PCD8544_84X48_1_4W_SW_SPI u8g2 = U8G2_PCD8544_84X48_1_4W_SW_SPI(U8G2_R0, 14, 13, 15, 27, 26);

and this:
U8G2_PCD8544_84X48_1_4W_HW_SPI u8g2(U8G2_R0, 15, 27, 26);

RST -> G26
CE -> G15
DC -> G27
DIN -> G12
CLK -> G14

I assume either the PINs are not correctly defined by me in the sketch or I selected the wrong board.

So which board should I select or how do I reference the PINs in PlattformIO?

thx in advance...