Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArduinoIDE Compilation Error #8

Open
extremerotary opened this issue Feb 21, 2025 · 0 comments
Open

ArduinoIDE Compilation Error #8

extremerotary opened this issue Feb 21, 2025 · 0 comments

Comments

@extremerotary
Copy link

Good evening,
Similar to some other issues reported and feedback regarding PlatformIO - I would absolutely prefer to use this IDE over Arduino, but for now, I'm trying to get your example demos to compile and display. I am not new to LVGL, but am new to this specific display and I have trouble getting it to compile and initialize LVGL. Once that occurs, I will be completely fine as I can create the LVGL objects/screens/etc and handle the gesture events, etc. I've always struggled to get the initial source code set up for new devices/displays.

  1. I created a new sketch in ArduinoIDE and saved it. I used your example code from the readme.
  2. I then went to the library manager and added the waveshare_ST7262_LVGL inch which under 'more info' links back here - https://github.com/iamfaraz/Waveshare_ST7262_LVGL . This seemed to install all necessary dependencies as you have that in your library.json file.
  3. I navigated to my documents/arduino/libraries and copied the LVGL directories of demo and example from their current structure to the ./src directory per your instructions.
  4. Restarted ArduinoIDE to be safe.
  5. From your example code on the readme, I then uncommented out the "#include <examples/lv_examples.h>" and attempted to compile.

The code is massive in comparison to other devices I have dealt with. Even with commenting out the example and demo includes, it's 60% of 8Mb. Any idea how to reduce that? I would love to be able to simply load the necessary drivers for the display and touch chips and then initialize the LVGL library.

I also put in a pull request to correct the ESP_IO_EXPANDER_I2C_CH422G_ADDRESS - please accept

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant