# Porting to a new board Sunton Esp32 480x272

**URL:** <http://forum.squareline.io/t/porting-to-a-new-board-sunton-esp32-480x272/933>\
**Category:** How to\
**Created:** [February 27, 2023, 2:24pm UTC](http://forum.squareline.io/t/porting-to-a-new-board-sunton-esp32-480x272/933 "2023-02-27T14:24:31Z")\
**Posts on this page:** 1\
**Showing post:** 14

<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 17, 2024, 5:30am UTC](http://forum.squareline.io/t/porting-to-a-new-board-sunton-esp32-480x272/933/14 "2024-04-17T05:30:11Z")

</div>

Sunton has some worked out examples and SquareLine board-files here at the forum, but I guess you’ve already iterated through them.

> [@Sunton ESP32 5.0" RGB display board](https://forum.squareline.io/t/sunton-esp32-5-0-rgb-display-board/2145):
>
> I have attached a board I made for Squareline Studio for the Sunton ESP32\_8048S050C board. This is the 5.0" display with capacitive touch. It uses ESP-IDF \>= 5.0.4 and LVGL 8.3.x There is no lv\_conf.h included so that will need to be added to the exported code. Be sure to enable the user data in the lv\_conf.h file. This should also work for other Sunton displays, you might have to change the pin numbers located at the top of the main.c file. This uses the rgb panel API that is in the esp\_lcd co…

> [@Lvgl demo on M5Stack Core2, CoreS3, Lilygo T-S3 and Sunton 8048S070 boards](https://forum.squareline.io/t/lvgl-demo-on-m5stack-core2-cores3-lilygo-t-s3-and-sunton-8048s070-boards/1457):
>
> [[lvgl demo on M5Stack Core2, CoreS3, Lilygo T-S3 and Sunton 8048S070 boards] ](https://www.youtube.com/watch?v=fcoANm1Na5o) code: [GitHub - mhaberler/squareline-esp32: Example project using LVGL, M5Core2, PlatformIO and Arduino framework on the M5Stack Core2.](https://github.com/mhaberler/squareline-esp32) Michael

> [@Squareline GUI + Sunton ESP32-8048S043 4.3" 800x480 capacitive touch display](https://forum.squareline.io/t/squareline-gui-sunton-esp32-8048s043-4-3-800x480-capacitive-touch-display/2130/8):
>
> Yes I moved my function calls there!

> [@Arduino IDE compile error](https://forum.squareline.io/t/arduino-ide-compile-error/2686/2):
>
> LVGL9 shouldn’t be used yet because it has a changed API. So you’re at a good path by switching back to 8.3 branch of LVGL. From your error log it seems your Arduino build still wants to get a source (lv\_windows.c) which is only present in LVGL9 and not in LVGL8 (where drivers are still at a different external ‘lv\_drivers’ folder). Arduino IDE does a lot of things in the background that you can’t see but hopefully it helps if you completely exit Arduino IDE, and start from a totally new export,…

Maybe there are better working examples at ESP site or github pages for ESP-IDF toolchain, at least the ESP-IDF route for an ESP board is worth a try if the Arduino-IDE way fails.

---

_[View the full topic](http://forum.squareline.io/t/porting-to-a-new-board-sunton-esp32-480x272/933)._
