I'm trying to run some code (giobauermeister/waveshare-round-esp32-lvgl) but am having a lot of issues with include statements. For example, #include “TCA9554PWR.h” #include “PCF85063.h”
Is the folder structure not suitable for arduino IDE to process the includes?
In general an Arduino sketch expects to find the files #included by it either in the same folder as the .ino file being compiled or in a folder in the libraries folder of your sketchbook folder
In either case you can use the #include "libraryFile.h" format of #include
There are other possible locations for library files but I suggest that you try one of those first
It seems the project is not for Arduino.
You can't get any random github repo and expect that it will builds in the Arduino IDE without rewriting the code.
So, if you load LVGL_Arduino.ino into the IDE, you should be able to compile.
2. LVGL version
Which LVGL version did you install?
The wiki page does not specify a version, which is obviously incorrect; it requires LVGL 8.3.9. The demo code contains functions that do not exist in LVGL9.x.
Furthermore, some files are slightly different from the 8.3.9 downloaded from the official LVGL GitHub, so you will need to copy the lvgl attached to the libraries in Demo to the libraries in your sketchbook folder. At the same time, you will need to create lv_conf.h based on the attached lv_conf_template.h.
If this doesn't solve the issue, I would suggest contacting Waveshare support and requesting the appropriate lvgl library.
Thanks for your comment! Unfortunately the demo files don't work for my particular hardware, hence why I'm trying the crowdsourced files (but which apparently aren't built for Arduino). Waveshare support is pretty useless and points me to the demo you mentioned, but which throws even more errors than this crowdsourced one.
You also tried Waveshare's demo program for Arduino, but it didn't work and didn't fit your requirements.
You are also trying "crowdsourced files" :
Unfortunately I have no experience developing with ESP-IDF.
But if you could narrow it down to one application and post the file structure you're trying to compile (perhaps originally for ESP-IDE?) and the full verbose output from the compiler in the Arduino IDE, I think the experts here might be able to help you.
First, I tried Waveshare's demo program for Arduino but was getting lots of problems. I posted on the LVGL forum, and got a response saying this is a known issue for my particular board, and a suggestion to try the giobauermeister files.
I tried adapting these for Arduino since they are originally for ESP-IDF but not having much luck so reaching out for support on this forum from those more familiar with the Arduino format. The 'crowd sourced' files I was just referring to the same files from giobauermeister.
The output posted in the photo above is all I see. When I fix one error, it then comes up with the next one...
This is completely normal. The error correction process is always iterative. You fix one error, another appears, and so on until you fix everything. Sometimes there can be dozens of them.
Moreover, correcting compilation errors is only the first and simplest stage. Quite often it happens that you have fixed all the errors, the code compiles, you load it into the board - and it does not work. Here the next stage begins - the debugging stage, at which you should find not syntax, but logical errors. This is much more difficult, because here you do not have a compiler that tells you where the error is.