# Howto - esp32-8048s070 board for Arduino

**URL:** <http://forum.squareline.io/t/howto-esp32-8048s070-board-for-arduino/1098>\
**Category:** How to\
**Created:** [April 2, 2023, 7:13pm UTC](http://forum.squareline.io/t/howto-esp32-8048s070-board-for-arduino/1098 "2023-04-02T19:13:57Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![sash](http://forum.squareline.io/letter_avatar_proxy/v4/letter/s/c6cbf5/32.png) [@sash](http://forum.squareline.io/u/sash)\
**Post date:** [April 2, 2023, 7:13pm UTC](http://forum.squareline.io/t/howto-esp32-8048s070-board-for-arduino/1098/1 "2023-04-02T19:13:57Z")

</div>

for those who have [ESP32-8048S070](https://www.aliexpress.com/item/1005004952726089.html) board and want board driver for it–  
first you need to download the libraries for it found [here](http://pan.jczn1688.com/directlink/1/ESP32%20module/7.0inch_ESP32-8048S070.zip?spm=a2g0o.detail.1000023.1.1fbc2935JMWFE5&file=7.0inch_ESP32-8048S070.zip) 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](http://forum.squareline.io/uploads/short-url/wqYNovumP6dy9mYVKG4WKRITJQv.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

---

<div class="post-metadata">

**Author:** ![Acuario](http://forum.squareline.io/letter_avatar_proxy/v4/letter/a/a9a28c/32.png) [@Acuario](http://forum.squareline.io/u/Acuario)\
**Post date:** [April 21, 2023, 2:38pm UTC](http://forum.squareline.io/t/howto-esp32-8048s070-board-for-arduino/1098/2 "2023-04-21T14:38:29Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![sash](http://forum.squareline.io/letter_avatar_proxy/v4/letter/s/c6cbf5/32.png) [@sash](http://forum.squareline.io/u/sash)\
**Post date:** [April 21, 2023, 6:31pm UTC](http://forum.squareline.io/t/howto-esp32-8048s070-board-for-arduino/1098/3 "2023-04-21T18:31:49Z")

</div>

when you download the driver above [arduino\_tft\_espi esp32.zip](https://forum.squareline.io/uploads/short-url/wqYNovumP6dy9mYVKG4WKRITJQv.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 -

```auto
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)

---

<div class="post-metadata">

**Author:** ![Acuario](http://forum.squareline.io/letter_avatar_proxy/v4/letter/a/a9a28c/32.png) [@Acuario](http://forum.squareline.io/u/Acuario)\
**Post date:** [April 22, 2023, 5:02am UTC](http://forum.squareline.io/t/howto-esp32-8048s070-board-for-arduino/1098/4 "2023-04-22T05:02:23Z")

</div>

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]

---

<div class="post-metadata">

**Author:** ![sash](http://forum.squareline.io/letter_avatar_proxy/v4/letter/s/c6cbf5/32.png) [@sash](http://forum.squareline.io/u/sash)\
**Post date:** [April 22, 2023, 12:52pm UTC](http://forum.squareline.io/t/howto-esp32-8048s070-board-for-arduino/1098/5 "2023-04-22T12:52:05Z")

</div>

okay glad you got it working for you

---

<div class="post-metadata">

**Author:** ![Jak](http://forum.squareline.io/letter_avatar_proxy/v4/letter/j/ecd19e/32.png) [@Jak](http://forum.squareline.io/u/Jak)\
**Post date:** [August 6, 2023, 10:49am UTC](http://forum.squareline.io/t/howto-esp32-8048s070-board-for-arduino/1098/6 "2023-08-06T10:49:21Z")

</div>

> [@Acuario](#):
>
> Squareline Studio x.x.x\boards\Arduino\arduino\_tft\_espi esp32\

Still struggling to work out what goes where but my question is,  
Is your arduino\_tft\_espi an update on previous versions as I already have Arduino Board directories of arduino\_tft\_espi\_v1\_0\_0, arduino\_tft\_espi\_v1\_0\_1 and arduino\_tft\_espi\_v1\_1\_0

---

<div class="post-metadata">

**Author:** ![Jak](http://forum.squareline.io/letter_avatar_proxy/v4/letter/j/ecd19e/32.png) [@Jak](http://forum.squareline.io/u/Jak)\
**Post date:** [August 7, 2023, 9:25pm UTC](http://forum.squareline.io/t/howto-esp32-8048s070-board-for-arduino/1098/7 "2023-08-07T21:25:48Z")

</div>

Hi Acuario, Is your ui.ino in the section mentioned by ‘sash’ the same as yours? I also have the 5" and although now compiling, the screen is dim and blank but I never got LvglWidgets.ino or the other examples to work either.

I did need to copy over those 3 files to the library directory as mentioned by sash and I’m using SLS 1.3.1 and Arduino IDE 2.1.1

---

<div class="post-metadata">

**Author:** ![sash](http://forum.squareline.io/letter_avatar_proxy/v4/letter/s/c6cbf5/32.png) [@sash](http://forum.squareline.io/u/sash)\
**Post date:** [August 8, 2023, 12:03am UTC](http://forum.squareline.io/t/howto-esp32-8048s070-board-for-arduino/1098/8 "2023-08-08T00:03:28Z")

</div>

you said you never got Lvglwidget.ino to work did you follow the pdf manual . that comes in the download for the board… there are couple lifes you have to copy over before Lvglwidget.ino works. once you get that to work then my above should work you can find your board here [ZFile](http://pan.jczn1688.com/1/ESP32%20module)

---

<div class="post-metadata">

**Author:** ![Jak](http://forum.squareline.io/letter_avatar_proxy/v4/letter/j/ecd19e/32.png) [@Jak](http://forum.squareline.io/u/Jak)\
**Post date:** [August 9, 2023, 10:09am UTC](http://forum.squareline.io/t/howto-esp32-8048s070-board-for-arduino/1098/9 "2023-08-09T10:09:35Z")

</div>

It doesn’t help that my libraries are not correctly set up. Not sure how it happened but I now have a /arduino/libraries and an arduino/sketches/libraries and have no idea yet which one is used by which sketches. Also after double checking after your post I find I don’t even have a TFT\_eSPI directory under either library as highlighted in the ‘Getting started 5.0 Inch.pdf’ although I managed to have the lv\_conf.h correct from you although probably now my SC01 Plus won’t work (seems a bad idea not to have this file in the project directory).

Changed the sketch location back to arduino/sketches/ and copied TFT\_eSPI to sketches/library folder

Next compile error is:

C:\Users\jakke\Documents\Arduino\Sketches\Display Panels\ESP32-S3-800x480\5.0inch\_ESP32-8048S050\1-Demo\Demo\_Arduino\3\_3-4\_TFT-LVGL-Widgets\LvglWidgets\LvglWidgets.ino:55:1: error: no matching function for call to ‘Arduino\_ESP32RGBPanel::Arduino\_ESP32RGBPanel(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int)’  
);  
^  
In file included from c:\Users\jakke\Documents\Arduino\Sketches\libraries\GFX\_Library\_for\_Arduino\src/Arduino\_GFX\_Library.h:17,  
from C:\Users\jakke\Documents\Arduino\Sketches\Display Panels\ESP32-S3-800x480\5.0inch\_ESP32-8048S050\1-Demo\Demo\_Arduino\3\_3-4\_TFT-LVGL-Widgets\LvglWidgets\LvglWidgets.ino:34:  
c:\Users\jakke\Documents\Arduino\Sketches\libraries\GFX\_Library\_for\_Arduino\src/databus/Arduino\_ESP32RGBPanel.h:59:3: note: candidate: ‘Arduino\_ESP32RGBPanel::Arduino\_ESP32RGBPanel(int8\_t, int8\_t, int8\_t, int8\_t, int8\_t, int8\_t, int8\_t, int8\_t, int8\_t, int8\_t, int8\_t, int8\_t, int8\_t, int8\_t, int8\_t, int8\_t, int8\_t, int8\_t, int8\_t, int8\_t, uint16\_t, uint16\_t, uint16\_t, uint16\_t, uint16\_t, uint16\_t, uint16\_t, uint16\_t, uint16\_t, int32\_t, bool, uint16\_t, uint16\_t)’  
Arduino\_ESP32RGBPanel(  
^ ~~~~~~~~~~~~~~~~~~~~  
c:\Users\jakke\Documents\Arduino\Sketches\libraries\GFX\_Library\_for\_Arduino\src/databus/Arduino\_ESP32RGBPanel.h:59:3: note: candidate expects 33 arguments, 23 provided  
c:\Users\jakke\Documents\Arduino\Sketches\libraries\GFX\_Library\_for\_Arduino\src/databus/Arduino\_ESP32RGBPanel.h:56:7: note: candidate: ‘constexpr Arduino\_ESP32RGBPanel::Arduino\_ESP32RGBPanel(const Arduino\_ESP32RGBPanel&)’  
class Arduino\_ESP32RGBPanel

Guessing that some Define is not set correctly perhaps so the call is incorrect. I seem to recall finding a readme that said to set a Define for LvglWidgets to 1 but can’t find that file again!  
I’m sure others come across similar problems getting these new screens setup for the first time.

---

<div class="post-metadata">

**Author:** ![Jak](http://forum.squareline.io/letter_avatar_proxy/v4/letter/j/ecd19e/32.png) [@Jak](http://forum.squareline.io/u/Jak)\
**Post date:** [August 9, 2023, 1:45pm UTC](http://forum.squareline.io/t/howto-esp32-8048s070-board-for-arduino/1098/10 "2023-08-09T13:45:58Z")

</div>

Finally found a define in the file lv\_demos.h (thought it was in a readme)

#if LV\_USE\_DEMO\_WIDGETS  
#include “widgets/lv\_demo\_widgets.h”  
#endif

Pretty sure I didn’t read anywhere about having to define this. The obvious place would have been in the LvglWidgets.ino

Either way defining this didn’t help.

---

<div class="post-metadata">

**Author:** ![Jak](http://forum.squareline.io/letter_avatar_proxy/v4/letter/j/ecd19e/32.png) [@Jak](http://forum.squareline.io/u/Jak)\
**Post date:** [August 9, 2023, 2:48pm UTC](http://forum.squareline.io/t/howto-esp32-8048s070-board-for-arduino/1098/11 "2023-08-09T14:48:12Z")

</div>

Putting that error code into Google showed 1 link but it fixed the problem thanks to [pete-pjb].

Turns out that I need to use an old version, 1.3.0 of the GFX Library for Arduino by Moon on Our Nation. Come to think of it I think this was how I fixed the code for my SC01 Plus.

Link: [How to setup the lvgl library for Esp32-s3-WROOM-1 with TFT display 800\*480 - How-to - LVGL Forum](https://forum.lvgl.io/t/how-to-setup-the-lvgl-library-for-esp32-s3-wroom-1-with-tft-display-800-480/12302/6)

---

<div class="post-metadata">

**Author:** ![abuenop](http://forum.squareline.io/user_avatar/forum.squareline.io/abuenop/32/1268_2.png) [@abuenop](http://forum.squareline.io/u/abuenop)\
**Post date:** [April 23, 2024, 10:57pm UTC](http://forum.squareline.io/t/howto-esp32-8048s070-board-for-arduino/1098/12 "2024-04-23T22:57:37Z")

</div>

Hello everyone! I’m a newbie to HMI and SquareLine, so sorry if my question is too simple, but after hours of searching the internet I haven’t managed to get my ESP32-8048S050 working with SquareLine.  
I have my board working with the lvgl widget demo in arduino IDE. Afterwards, I have done all the steps indicated by @sash but I think the problem is with the new SquareLine 1.40 because the export does not include the driver you created and that I have included in the Arduino directory. Please which version of SquareLine should work? any driver that works for the new version of SquareLine? Thank you very much!

---

<div class="post-metadata">

**Author:** ![sash](http://forum.squareline.io/letter_avatar_proxy/v4/letter/s/c6cbf5/32.png) [@sash](http://forum.squareline.io/u/sash)\
**Post date:** [April 24, 2024, 12:10am UTC](http://forum.squareline.io/t/howto-esp32-8048s070-board-for-arduino/1098/13 "2024-04-24T00:10:26Z")

</div>

your screen is slightly different then the driver I made mine was for the 8048S070, yours is the 8048S050. you have to modify it slightly. just down load the driver from [http://pan.jczn1688.com](http://pan.jczn1688.com) \> esp32module your screen size . and then modify the the ino to have the same screen info in that zip as I mentioned above at line 3 if you did that it should work. 1.4 version of squareline did not play nice with me on linux so I use the 1.3.x

---

<div class="post-metadata">

**Author:** ![Hermit](http://forum.squareline.io/user_avatar/forum.squareline.io/hermit/32/971_2.png) [@Hermit](http://forum.squareline.io/u/Hermit)\
**Post date:** [April 25, 2024, 8:06am UTC](http://forum.squareline.io/t/howto-esp32-8048s070-board-for-arduino/1098/14 "2024-04-25T08:06:30Z")

</div>

If you use a special board and display driver this is added in the exported code as sash points out, SquareLine Studio only exports the driver that is present in the selected board-template, this behaviour doesn’t depend on version.

---

<div class="post-metadata">

**Author:** ![abuenop](http://forum.squareline.io/user_avatar/forum.squareline.io/abuenop/32/1268_2.png) [@abuenop](http://forum.squareline.io/u/abuenop)\
**Post date:** [April 27, 2024, 9:02am UTC](http://forum.squareline.io/t/howto-esp32-8048s070-board-for-arduino/1098/15 "2024-04-27T09:02:58Z")

</div>

Thanks @sash it’s working for me now. I didn’t realise that in windows there are two different folders, one for the app and other one for the profile, and that was my mistake. Another problem is with the Square Line version, 1.4.0 is incompatible with the lvg version of the board, so I have to use the 1.3.x and it works fine. After that I have some problems compiling in Arduino but searching for information in this forum has solved the issue.

---

<div class="post-metadata">

**Author:** ![Hobbyist](http://forum.squareline.io/letter_avatar_proxy/v4/letter/h/5f8ce5/32.png) [@Hobbyist](http://forum.squareline.io/u/Hobbyist)\
**Post date:** [August 12, 2024, 4:41am UTC](http://forum.squareline.io/t/howto-esp32-8048s070-board-for-arduino/1098/16 "2024-08-12T04:41:10Z")

</div>

Hello. Do you have the “Tool” overall settings? I can’t upload my interfaces generated from SLS. The display is black only. I use the same display (esp32-8048s070). Thank you!
