rzeldent / esp32-smartdisplay

PlatformIO library LVGL Drivers for Sunton Smart display boards (CYD Cheap Yellow Display). This library supports these boards without any effort. ESP32-2432S024N/R/C, ESP32-2432S028R/C, ESP32-3248S035R/C, ESP32_8048S070N/C
https://github.com/rzeldent/platformio-espressif32-sunton
GNU General Public License v3.0
428 stars 75 forks source link

How to start, please? #39

Closed cody-assistant closed 11 months ago

cody-assistant commented 1 year ago

Hi. Im new with this device and after lot of hours rounding around, im unable to understand how to make run this. Can you, please, give me the first steps about how to setup the folders and how to start the project? thanks very much in advance

rzeldent commented 1 year ago

Hi cody,

Use the esp32-smartdemo project to get started. This is a demo application that uses this library. See the documentation: https://github.com/rzeldent/esp32-smartdisplay-demo

cody-assistant commented 1 year ago

Thanks for your response. i got it running in ESP32_2432S024C device. how to run in a ESP32-S3-WROOM-1 device? what i need to change? thanks in advance

cody-assistant commented 1 year ago

How to create a QR Code for ESP32_2432S024C?

rzeldent commented 1 year ago

Hi Cody,

You can just change the value for the board= in the platformio.ini fille to match your board! However, this repo is specially for the Sunton boards. If you're interested in the latest boards (with esp32-s3) take a look at the feature branch!

Rene

On Wed, Nov 15, 2023 at 5:02 PM cody-assistant @.***> wrote:

Thanks for your response. i got it running in ESP32_2432S024C device. how to run in a ESP32-S3-WROOM-1 device? what i need to change? thanks in advance

— Reply to this email directly, view it on GitHub https://github.com/rzeldent/esp32-smartdisplay/issues/39#issuecomment-1812810608, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB2ENB4TOZZVG7AY4UFHO3DYETRPVAVCNFSM6AAAAAA6ZPFNIWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJSHAYTANRQHA . You are receiving this because you commented.Message ID: @.***>

cody-assistant commented 1 year ago

Hi and thanks very much for your help. I have downloaded feature branch and tried to compile. After moving files from "example" folder to root foder and copy some .h files, i get some errors and i can not continue with compilation:

.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: .pio/build/esp32dev/libFrameworkArduino.a(main.cpp.o):(.literal._Z8loopTaskPv+0x8): undefined reference to `setup()'

.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: .pio/build/esp32dev/libFrameworkArduino.a(main.cpp.o):(.literal._Z8loopTaskPv+0xc): undefined reference to `loop()'

.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: .pio/build/esp32dev/libFrameworkArduino.a(main.cpp.o): in function `loopTask(void*)':

My main.cpp is:

#include <Arduino.h>
#include <esp32_smartdisplay.h>

void setup()
{
  smartdisplay_init();
}

void loop()
{
  lv_timer_handler();
}

Can you, please, give me some help? Thanks in advance

cody-assistant commented 1 year ago

Hi cody,

Use the esp32-smartdemo project to get started. This is a demo application that uses this library. See the documentation: https://github.com/rzeldent/esp32-smartdisplay-demo

This is working perfectly. I have a question. Is it possible to add to the project a TCP server accepting data from connection to a given port and show the data received while the current program in esp32-smartdisplay-demo continues working? That is, receiving data and showing this data on creen and continue to have buttons and millis counter working?

Thanks in advance.

cody-assistant commented 1 year ago

Use the esp32-smartdemo project to get started. This is a demo application that uses this library. See the documentation: https://github.com/rzeldent/esp32-smartdisplay-demo

With this, i have not the board im using. The board is: ESP32- 8048S043, and this board is present in the platformio.ini in the feature branch.

rzeldent commented 1 year ago

Hi cody,

It is present but it still under development, just remove the # in front of ESP32_8048S043. N=no touch, R=resitive touch and C=capacitive touch,

rzeldent commented 11 months ago

ESP32- 8048S043 is working