Howto - esp32-8048s070 board for Arduino

for those who have ESP32-8048S070 board and want board driver for it–
first you need to download the libraries for it found here currently.

download it and unzip it, in there you will find the Arduino libraries for it in the folder 1-demo/libraries

Now download the squareline studio driver for it that i created .
arduino_tft_espi esp32.zip (5.9 MB)
this board driver is missing some components libraries as they are very BIG ( but are found in the first library file downloaded )
extract the board driver,
in there you will see a zip file called arduino_tft_espi.zip. Open it with Ark(linux) winzip(windows) and drag and drop the board’s library files into the compressed folder called libraries --add these → Arduino_GFX_master, Touch_GT911, and gt911_arduino-main – they are found in the directory mentioned above 1-demo/libraries/

once done copy to your squareline board directory into the Arduino folder

1 Like

Hi, can you be a bit more specific about what and where to copy your squareline studio driver files. I have the 8048S050 5" display and would like to use it in squareline studio. My installation is totally new v1.2.3

I can build the demo of the LvglWidgets.ino demo and this works correctly on my board.
I’m now trying to use SquarelineStudio to build a project.

When you say the compressed libraries folder, where is it? In the squarelinestudio files in program files? I don’t have that folder. The only .slb file I find in squareline studio is in a folder boards\Desktop\sim_sdl_eclipse_v1_0_1 (sim_sdl_eclipse.slb)

In my Arduino\libraries folder I have the drivers for the board an I assume they are correct as the demo compiles, uploads and runs correctly.

Please can you help?

when you download the driver above arduino_tft_espi esp32.zip
and uncompress it. you will see another zip file in there called arduino_tft_espi.zip… when you open that one in ark or zip program you will see a folder called ui_project_name and in there is the folder called libraries and drop libraries mentioned in there…

now your display is of different size then the one i have
you might have to edit the file ui.ino in the ui folder found with in that same zip file as well to match the your display specifications
just use the configurations that are found in the LvglWidgets.ino that worked for you and compare if there is a difference in this section
example from mine -

Arduino_ESP32RGBPanel *bus = new Arduino_ESP32RGBPanel(
    GFX_NOT_DEFINED /* CS */, GFX_NOT_DEFINED /* SCK */, GFX_NOT_DEFINED /* SDA */,
    41 /* DE */, 40 /* VSYNC */, 39 /* HSYNC */, 42 /* PCLK */,
    14 /* R0 */, 21 /* R1 */, 47 /* R2 */, 48 /* R3 */, 45 /* R4 */,
    9 /* G0 */, 46 /* G1 */, 3 /* G2 */, 8 /* G3 */, 16 /* G4 */, 1 /* G5 */,
    15 /* B0 */, 7 /* B1 */, 6 /* B2 */, 5 /* B3 */, 4 /* B4 */
);
// option 1:
// 7寸 50PIN 800*480
Arduino_RPi_DPI_RGBPanel *gfx = new Arduino_RPi_DPI_RGBPanel(
  bus,
//  800 /* width */, 0 /* hsync_polarity */, 8/* hsync_front_porch */, 2 /* hsync_pulse_width */, 43/* hsync_back_porch */,
//  480 /* height */, 0 /* vsync_polarity */, 8 /* vsync_front_porch */, 2/* vsync_pulse_width */, 12 /* vsync_back_porch */,
//  1 /* pclk_active_neg */, 16000000 /* prefer_speed */, true /* auto_flush */);

    800 /* width */, 0 /* hsync_polarity */, 210 /* hsync_front_porch */, 30 /* hsync_pulse_width */, 16 /* hsync_back_porch */,
    480 /* height */, 0 /* vsync_polarity */, 22 /* vsync_front_porch */, 13 /* vsync_pulse_width */, 10 /* vsync_back_porch */,
    1 /* pclk_active_neg */, 16000000 /* prefer_speed */, true /* auto_flush */);

or just use the driver as is and modify when you ready to flash it esp32-

but now that i used squareline for a bit , and have a better understanding of it… i do not think you actually need to upload the added libraries into the zipfile . the current board driver will work fine as is (i’m pretty sure anyways ) . the add libraries are there purely for packaging reasoning . ie So you can compress your project ship it and all the necessary files will be there

then once you have it all edited for your board type . drop the board driver folder and all in to the squareline/boards/Arduino/ directory ( if the Arduino directory does not exist create it)

ok, thanks - yes I have it working. I didn’t add the extra libraries so your assumption is correct - they are picked up from the Arduino libraries path.

What confused me is that there is no folder for Arduino in SquarelineStudio, I had to create the folder.

For anyone looking to do the same (add boards) the folder structure is:

Squareline Studio x.x.x\boards\Arduino\arduino_tft_espi esp32\ [the .png, .slb, .zip go in this folder]

1 Like

okay glad you got it working for you