diff --git a/demos/benchmark/README.md b/demos/benchmark/README.md
index 5337f899a..a5c7638f8 100644
--- a/demos/benchmark/README.md
+++ b/demos/benchmark/README.md
@@ -40,21 +40,25 @@ If you are doing performance analysis for 2D image processing optimization, LCD
1. Use a flag to control the LCD flushing inside `disp_flush()`. For example:
```c
-static volatile bool is_flush_enabled = true;
+volatile bool disp_flush_enabled = true;
-void disp_enable(void)
+/* Enable updating the screen (the flushing process) when disp_flush() is called by LVGL
+ */
+void disp_enable_update(void)
{
- is_flush_enabled = true;
+ disp_flush_enabled = true;
}
-void disp_disable(void)
+/* Disable updating the screen (the flushing process) when disp_flush() is called by LVGL
+ */
+void disp_disable_update(void)
{
- is_flush_enabled = false;
+ disp_flush_enabled = false;
}
static void disp_flush(lv_disp_drv_t * disp_drv, const lv_area_t * area, lv_color_t * color_p)
{
- if(is_flush_enabled) {
+ if(disp_flush_enabled) {
GLCD_DrawBitmap(area->x1, //!< x
area->y1, //!< y
area->x2 - area->x1 + 1, //!< width
@@ -71,12 +75,12 @@ static void disp_flush(lv_disp_drv_t * disp_drv, const lv_area_t * area, lv_colo
2. Disable flushing before calling `lv_demo_benchmark()` or `lv_demo_benchmark_run_scene()`, for example:
```c
-extern void disp_enable(void);
-extern void disp_disable(void);
+extern void disp_enable_update(void);
+extern void disp_disable_update(void);
static void on_benchmark_finished(void)
{
- disp_enable();
+ disp_enable_update();
}
int main(void)
@@ -89,14 +93,18 @@ int main(void)
LV_LOG("Please stand by...");
LV_LOG("NOTE: You will NOT see anything until the end.");
- disp_disable();
+ disp_disable_update();
lv_demo_benchmark_set_finished_cb(&on_benchmark_finished);
+ lv_demo_benchmark_set_max_speed(true);
lv_demo_benchmark();
//lv_demo_benchmark_run_scene(43); // run scene no 31
...
+ while(1){
+ lv_timer_handler(); //! run lv task at the max speed
+ }
}
```
diff --git a/demos/benchmark/lv_demo_benchmark.c b/demos/benchmark/lv_demo_benchmark.c
index 2356625c7..86159e1d7 100644
--- a/demos/benchmark/lv_demo_benchmark.c
+++ b/demos/benchmark/lv_demo_benchmark.c
@@ -834,7 +834,7 @@ static void generate_report(void)
// lv_table_set_cell_type(table, row, 0, 2);
// lv_table_set_cell_type(table, row, 1, 2);
- LV_LOG("%s,%s\r\n", scenes[i].name, buf);
+ //LV_LOG("%s,%s\r\n", scenes[i].name, buf);
row++;
}
@@ -843,14 +843,14 @@ static void generate_report(void)
lv_snprintf(buf, sizeof(buf), "%s + opa", scenes[i].name);
lv_table_set_cell_value(table, row, 0, buf);
- LV_LOG("%s,", buf);
+ //LV_LOG("%s,", buf);
lv_snprintf(buf, sizeof(buf), "%"LV_PRIu32, scenes[i].fps_opa);
lv_table_set_cell_value(table, row, 1, buf);
// lv_table_set_cell_type(table, row, 0, 2);
// lv_table_set_cell_type(table, row, 1, 2);
- LV_LOG("%s\r\n", buf);
+ //LV_LOG("%s\r\n", buf);
row++;
}
diff --git a/env_support/cmsis-pack/LVGL.lvgl.1.0.4.pack b/env_support/cmsis-pack/LVGL.lvgl.1.0.5-alpha1.pack
similarity index 96%
rename from env_support/cmsis-pack/LVGL.lvgl.1.0.4.pack
rename to env_support/cmsis-pack/LVGL.lvgl.1.0.5-alpha1.pack
index 8263b2ea0..d8c42ef41 100644
Binary files a/env_support/cmsis-pack/LVGL.lvgl.1.0.4.pack and b/env_support/cmsis-pack/LVGL.lvgl.1.0.5-alpha1.pack differ
diff --git a/env_support/cmsis-pack/LVGL.lvgl.pdsc b/env_support/cmsis-pack/LVGL.lvgl.pdsc
index 92d011253..4fe8729db 100644
--- a/env_support/cmsis-pack/LVGL.lvgl.pdsc
+++ b/env_support/cmsis-pack/LVGL.lvgl.pdsc
@@ -36,7 +36,11 @@
https://github.com/lvgl/lvgl.git
-
+
+ - LVGL 8.3.0-dev
+ - Monthly update for June
+
+
- LVGL 8.3.0-dev
- Monthly update for May
- Update drawing service
@@ -331,8 +335,8 @@
Porting Templates
-
-
+
+
diff --git a/env_support/cmsis-pack/LVGL.pidx b/env_support/cmsis-pack/LVGL.pidx
index 9c1d1c6b5..05e975517 100644
--- a/env_support/cmsis-pack/LVGL.pidx
+++ b/env_support/cmsis-pack/LVGL.pidx
@@ -2,8 +2,8 @@
LVGL
https://raw.githubusercontent.com/lvgl/lvgl/master/env_support/cmsis-pack/
- 2022-05-31T00:21:23
+ 2022-06-13T00:17:59
-
+
\ No newline at end of file
diff --git a/examples/porting/lv_port_disp_template.c b/examples/porting/lv_port_disp_template.c
index 676c7320f..792166685 100644
--- a/examples/porting/lv_port_disp_template.c
+++ b/examples/porting/lv_port_disp_template.c
@@ -111,8 +111,8 @@ void lv_port_disp_init(void)
/*Set up the functions to access to your display*/
/*Set the resolution of the display*/
- disp_drv.hor_res = 480;
- disp_drv.ver_res = 320;
+ disp_drv.hor_res = MY_DISP_HOR_RES;
+ disp_drv.ver_res = MY_DISP_VER_RES;
/*Used to copy the buffer's content to the display*/
disp_drv.flush_cb = disp_flush;