ESP32 8048S070 LCD Init
#include <Arduino_GFX_Library.h>
#include <math.h>
// ===================== RGB PANEL =====================
Arduino_ESP32RGBPanel *rgbpanel = new Arduino_ESP32RGBPanel(
41, 40, 39, 42,
These are the ESP32 GPIO numbers for the sync pins. They map to
* DE - Data Enable
* VSYNC
* HSYNC
* PCLK - Pixel Clock
14, 21, 47, 48, 45,
Red channel GPIO pins - 5 bits
9, 46, 3, 8, 16, 1,
Green channel GPIO pins - 6 bits
15, 7, 6, 5, 4,
Blue channel GPIO pins - 5 bits
This makes RGB565 colour pixels.
0, 180, 30, 16,
Horizontal timing
* HSYNC pulse width
* Front porch
* Back Porch
* Something else
0, 12, 13, 10
Same for vertical timing
);
They all come from https://github.com/moononournation/Arduino_GFX/wiki/Dev-Device-Declaration, which is a page I would never have found in a million years.
And are mentioned here too https://forum.arduino.cc/t/using-esp32s3-with-touch-display-compile-problems/1255708/21
Which has a link to the schematic for the board, although the link is very slow.
There is a link here to schematics that seem to match the board http://specs.buho.ch/MCU/ESP32-8048S070/Schematic/
Arduino_RGB_Display *display = new Arduino_RGB_Display(
800, 480, rgbpanel, 0, false
);