https://github.com/trianglesis/esp32-c6-lcd-1.47-test-lvgl
https://github.com/trianglesis/esp32-c6-lcd-1.47-test-lvgl
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/trianglesis/esp32-c6-lcd-1.47-test-lvgl
- Owner: trianglesis
- Created: 2025-04-11T10:26:44.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-11T11:15:43.000Z (about 1 year ago)
- Last Synced: 2025-05-15T07:15:24.289Z (about 1 year ago)
- Language: C
- Size: 92.1 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Waveshare ESP32 C6 LCD 1.47
Can use LVGL from SquareLine studio right away with very small modifications.
ESP32-C6-LCD-1.47
- Product [Wiki](https://www.waveshare.com/wiki/ESP32-C6-LCD-1.47)
- Product [demo.zip](https://files.waveshare.com/wiki/ESP32-C6-LCD-1.47/ESP32-C6-LCD-1.47-Demo.zip)

Setup the example project as described at the wiki.
Now setup SquareLine project as following:

- Export ui files at the `main/ui`
- Import UI files in `main/main.c` as `#include "ui/ui.h"`
- Modify `ui.h` from `main/ui/ui.h` to include lvgl from root dir: `#include "lvgl.h"`
- Init the UI right before the loop: `ui_init();`
- Call LVGL objects after: `lv_timer_handler`
```code
// Init SQ Line Studio elements
lv_arc_set_value(ui_Arc1, counter);
lv_label_set_text_fmt(ui_Label1, "%d", counter);
lv_label_set_text(ui_Label2, "CO2 ppm");
```
Working:
