i want to connect a esp32 to my mcufriend screen.
when i use the standard connections screen is working
but i need to change pinorder to fit my pcb
is it possible to change the pins ?
i tried to change the pins like this
#define LCD_CS 16 // Chip select control pin #define LCD_DC 4 // Data Command control pin - must use a pin in the range 0-31 #define LCD_RST 17 // Reset pin #define LCD_WR 2 // Write strobe control pin - must use a pin in the range 0-31 #define LCD_RD 15 #define LCD_D0 12 #define LCD_D1 13 #define LCD_D2 32 #define LCD_D3 33 #define LCD_D4 25 #define LCD_D5 26 #define LCD_D6 27 #define LCD_D7 14
Look at mcufriend_shield.h
You will see the "shield" wiring.
Alter the defines to match your wiring in the LCD_ID_readreg example sketch.
Then run LCD_ID_readreg example. If it returns correct values, the defines should work in mcufriend_shield.h (but you should really put them in mcufriend_special.h)
i changed the pins in mcufriend shield and in the lcd id readreg ino.
i have this error:
esptool.py v2.6
Serial port COM12
Connecting...........................
A fatal error occurred: Timed out waiting for packet header
A fatal error occurred: Timed out waiting for packet header
when i only hit the verifiy button compiling is ok
my esp is an NODEMCU-32 V1.2 module.in the IDE i choose ESP32 DEV module as bord
If I trawl through the Compile line you will see that I used v1.8.13 IDE (-DARDUINO=10813) Board = ESP32 DEV (-DARDUINO_ESP32_DEV) and the Core is v1.0.4 ( "-IC:\Users\David Prentice\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\variants\esp32")
I suggest that you always try ready-made examples first.
Note that the readreg sketch uses no libraries at all. Just virgin digitalRead() and digitalWrite()