ESP32 PINs in PlattformIO

wolf70
Posts: 2
Joined: Mon Jul 13, 2020 8:15 am

ESP32 PINs in PlattformIO

Postby wolf70 » Wed Jul 15, 2020 6:08 am

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

Who is online

Users browsing this forum: No registered users and 16 guests