profi-max / JC4827W543_4.3inch_ESP32S3_board

ESP32-S3 with 4.3' TFT 480x270 driver NV3041A and capacitive touch
7 stars 3 forks source link

Example didn't compile properly. #2

Closed 01GOD closed 1 month ago

01GOD commented 3 months ago

Hi,

Thanks for posting that! Sadly the example didn't compile properly, although installed lvgl 8.4.0.

Also, in the "Move lv_conf.h file to ..../Arduino/libraries directory", which lv_conf.h specifically? There are many. Should the specific lv_conf.h file in a demo's folder be used when compiling each specific demo, or is there one lv_conf.h that functions with all of the JC4827W543 boards?

Thanks in advance for explaining!

By the way, this board is the JC4827W543-C with the cap touch. PDF docs that came with this board said to set 16mb(128mb) in the tools menu on the Arduino IDE. Also said to use the esptool programmer and didn't mention USB CDC On. I know that such chinese electronics products are somewhat notorious for sometimes requiring non-chinese software engineers in the international community to solve the problems though, so those settings in the included docs may have not been optimal.

Also recommend opening a "Discussions" on this repo. That can encourage cautious people to get involved in a less official way than by opening an "issue".

Here is the Arduino IDE compiler error on the example in the ReadMe on this repo: "/private/var/folders/mp/11mhd1nn4335gj46054knmxr0000gn/T/.arduinoIDE-unsaved202464-81432-wfmd7w.rdgta/sketch_jul4a/sketch_jul4a.ino:7:10: fatal error: lv_demo_widgets.h: No such file or directory 7 | #include "lv_demo_widgets.h" | ^~~~~~~ compilation terminated. exit status 1

Compilation error: lv_demo_widgets.h: No such file or directory"

Thought maybe grab that from an lvgl folder and try putting it in main Arduino libs dir, but prefer to do it the right way.

profi-max commented 2 months ago

Hello! 1)"Move lv_conf.h file to ..../Arduino/libraries directory"
An example of lv_conf.h is in this repository: Examples/Demo_Arduino/3_3-3_TFT-LVGL-Widgets/LVGL configuration replacement file This file is configured for JC4827W543 boards. 2) You can upload the firmware directly via USB 3) "set 16mb(128mb) in the tools menu on the Arduino IDE" This makes sense if your application is this large. 4) "Here is the Arduino IDE compiler error" lv_conf.h will open the path to lv_demo_widgets.h

01GOD commented 1 month ago

Hello! 1)"Move lv_conf.h file to ..../Arduino/libraries directory" An example of lv_conf.h is in this repository: Examples/Demo_Arduino/3_3-3_TFT-LVGL-Widgets/LVGL configuration replacement file This file is configured for JC4827W543 boards. 2) You can upload the firmware directly via USB 3) "set 16mb(128mb) in the tools menu on the Arduino IDE" This makes sense if your application is this large. 4) "Here is the Arduino IDE compiler error" lv_conf.h will open the path to lv_demo_widgets.h

Thanks! Apologies for the delayed reply. Had moved to another city last month, so I had maybe missed that. I thankfully did get that board functioning, although LVGL used too much MCU to run the app I had originally planned to (so far, anyway).