From b8fd326d0bf05d1943209a094800a0527c15d30e Mon Sep 17 00:00:00 2001
From: marqdevx
Date: Tue, 12 Oct 2021 18:00:41 +0200
Subject: [PATCH 1/2] LVGL update to v8
---
.../lvglCounter/lvglCounter.ino | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/examples/Creating GUIs with LVGL/lvglCounter/lvglCounter.ino b/examples/Creating GUIs with LVGL/lvglCounter/lvglCounter.ino
index 0f0a7e0..9a88408 100644
--- a/examples/Creating GUIs with LVGL/lvglCounter/lvglCounter.ino
+++ b/examples/Creating GUIs with LVGL/lvglCounter/lvglCounter.ino
@@ -6,8 +6,9 @@
static lv_obj_t *label;
int counter = 0;
+lv_timer_t * timer;
-static void updateCounterTask(lv_task_t *task) {
+static void updateCounterTimer(lv_timer_t *timer) {
// Print the count to the Serial monitor
Serial.println(counter);
@@ -25,19 +26,19 @@ void setup() {
portenta_init_video();
// Setting up the label making it a child of the screen
- label = lv_label_create(lv_scr_act(), NULL);
+ label = lv_label_create(lv_scr_act());
// Set the label's text
lv_label_set_text(label , "Counter");
// We move it to the center of the screen and align it centered
- lv_obj_align(label, NULL, LV_ALIGN_CENTER, 0, 0);
+ lv_obj_align(label, LV_ALIGN_CENTER, 0, 0);
- // Create a task to update the counter
- lv_task_create(updateCounterTask, 1000, LV_TASK_PRIO_MID, NULL);
+ // Create a timer to update the counter
+ timer = lv_timer_create(updateCounterTimer, 1000, NULL);
}
void loop() {
// put your main code here, to run repeatedly:
- lv_task_handler();
+ lv_timer_handler();
}
\ No newline at end of file
From 35e9de4ff4a3157dbbb47317780458fbb3428b09 Mon Sep 17 00:00:00 2001
From: marqdevx
Date: Tue, 12 Oct 2021 18:18:50 +0200
Subject: [PATCH 2/2] CI: LVGL now uses v8
---
.github/workflows/compile-examples.yml | 1 -
1 file changed, 1 deletion(-)
diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml
index e220f4e..8086b1f 100644
--- a/.github/workflows/compile-examples.yml
+++ b/.github/workflows/compile-examples.yml
@@ -78,7 +78,6 @@ jobs:
- name: ArduinoBLE
- name: Arduino_EdgeControl
- name: lvgl
- version: 7.11.0
- name: Arduino_BHY2
sketch-paths: |