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

Update LVGL to 8.4 #51

Merged
merged 22 commits into from
Mar 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
3bcad32
fix(snapshot): set data_size on returned dsc (#4972)
niklasf Dec 11, 2023
5b04422
docs(sjpg): color depth no longer limited to 16 bits (#4971)
niklasf Dec 11, 2023
187efab
docs: add banner
kisvegabor Dec 11, 2023
7f79f40
fix(chart): fix memory leak in lv_chart_remove_series (#5001)
pfyra Dec 13, 2023
76b7648
fix(screen): fix crash when starting two screen loads with animations…
Lzw655 Dec 21, 2023
0a7f2ae
feat(build): add pkgconfig file (#4744) (#5067)
johanadamnilsson Dec 22, 2023
a955bec
docs(roller): add note about using LV_USE_LARGE_COORD
kisvegabor Dec 30, 2023
fb46d67
docs(meter): change LV_PART_TICK -> LV_PART_TICKS
kisvegabor Jan 1, 2024
9be3480
fix(gpu-arm2d): fix a blending issue in blend-normal-with-mask-and-op…
GorgonMeducer Jan 3, 2024
a0bd9c5
feat(calendar): set a custom year list for calendar header (#5275)
C47D Jan 11, 2024
d854ef0
doc(font): update Bidirectional support (#5416)
cnjhb Jan 22, 2024
d1679b4
docs: fixed some typos (#5502)
glory-man Jan 26, 2024
16c0f39
demo(music): add png assets
kisvegabor Jan 29, 2024
7a1e48d
fix(st-dma2d): remove unused functions (#5561)
kisvegabor Feb 7, 2024
da2b139
chore: code formatting
kisvegabor Feb 7, 2024
d54bfd1
chore: fix warning
kisvegabor Feb 8, 2024
b8002c1
feat(pxp): add zephyr support (#5838)
faxe1008 Mar 12, 2024
70df63c
update code formatter
kisvegabor Mar 12, 2024
6aad9ab
fix(canvas): lv_canvas_transform negative offset_y parameter (#5846)
liamHowatt Mar 13, 2024
0f90272
fix(ci): workaround ASAN error in CI with Ubuntu 22.04 image (#5867)
W-Mai Mar 14, 2024
39221ec
chore(group):avoid null pointer access (#5864)
cnjhb Mar 17, 2024
8e45147
chore(cmsis-pack): prepare for release v8.4.0
GorgonMeducer Mar 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ jobs:
- uses: ammaraskar/gcc-problem-matcher@master
- name: Install prerequisites
run: scripts/install-prerequisites.sh
- name: Fix kernel mmap rnd bits
# Asan in llvm 14 provided in ubuntu 22.04 is incompatible with
# high-entropy ASLR in much newer kernels that GitHub runners are
# using leading to random crashes: https://reviews.llvm.org/D148280
run: sudo sysctl vm.mmap_rnd_bits=28
- name: Run tests
run: python tests/main.py --report test
- name: Upload coverage to Codecov
Expand Down Expand Up @@ -93,4 +98,12 @@ jobs:
echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc

run: |
if [[ "${{ matrix.distro }}" == "ubuntu22.04" ]]; then
# ASan in llvm 14 provided in ubuntu-22.04 is incompatible with
# high-entropy ASLR configured in much newer kernels that GitHub
# runners are using leading to random crashes:
# https://github.com/actions/runner-images/issues/9491
# can remove this once the issue is fixed.
sysctl -w vm.mmap_rnd_bits=28
fi
env PATH="/usr/lib/ccache:$PATH" ASAN_OPTIONS=detect_leaks=0 python3 tests/main.py test
15 changes: 11 additions & 4 deletions .github/workflows/check_style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
- name: Checkout astyle
uses: actions/checkout@v4
with:
repository: szepeviktor/astyle
path: astyle
ref: v3.4.12
- name: Install astyle
run: |
sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu `lsb_release -sc` main universe restricted multiverse"
sudo apt-get update -y -qq
sudo apt-get install astyle
cd astyle/build/gcc/
make
sudo make install
astyle --version
- name: Format code
run: python code-format.py
working-directory: scripts
Expand Down
2 changes: 1 addition & 1 deletion Kconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Kconfig file for LVGL v8.0
# Kconfig file for LVGL v8.4

if LVGL
menu "LVGL configuration"
Expand Down
22 changes: 0 additions & 22 deletions demos/benchmark/lv_demo_benchmark.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,6 @@ static void shadow_small_ofs_cb(void)
rect_create(&style_common);
}


static void shadow_large_cb(void)
{
lv_style_reset(&style_common);
Expand All @@ -250,7 +249,6 @@ static void shadow_large_ofs_cb(void)
rect_create(&style_common);
}


static void img_rgb_cb(void)
{
lv_style_reset(&style_common);
Expand Down Expand Up @@ -293,7 +291,6 @@ static void img_alpha_cb(void)
img_create(&style_common, &img_benchmark_cogwheel_alpha16, false, false, false);
}


static void img_rgb_recolor_cb(void)
{
lv_style_reset(&style_common);
Expand Down Expand Up @@ -382,7 +379,6 @@ static void img_rgb_zoom_aa_cb(void)
lv_style_set_img_opa(&style_common, opa_mode ? LV_OPA_50 : LV_OPA_COVER);
img_create(&style_common, &img_benchmark_cogwheel_rgb, false, true, true);


}

static void img_argb_zoom_cb(void)
Expand All @@ -396,7 +392,6 @@ static void img_argb_zoom_cb(void)
#endif
}


static void img_argb_zoom_aa_cb(void)
{
lv_style_reset(&style_common);
Expand Down Expand Up @@ -462,7 +457,6 @@ static void txt_large_compr_cb(void)

}


static void line_cb(void)
{
lv_style_reset(&style_common);
Expand Down Expand Up @@ -490,7 +484,6 @@ static void arc_thick_cb(void)

}


static void sub_rectangle_cb(void)
{
lv_style_reset(&style_common);
Expand Down Expand Up @@ -563,8 +556,6 @@ static void sub_text_cb(void)
txt_create(&style_common);
}



/**********************
* STATIC VARIABLES
**********************/
Expand Down Expand Up @@ -702,7 +693,6 @@ static void benchmark_init(void)
lv_obj_update_layout(scr);
}


void lv_demo_benchmark(void)
{
benchmark_init();
Expand Down Expand Up @@ -750,7 +740,6 @@ void lv_demo_benchmark_run_scene(int_fast16_t scene_no)
}
}


void lv_demo_benchmark_set_finished_cb(finished_cb_t * finished_cb)
{
benchmark_finished_cb = finished_cb;
Expand Down Expand Up @@ -799,7 +788,6 @@ static void generate_report(void)
weight_opa_sum += w;
}


fps_sum = fps_normal_sum + fps_opa_sum;
weight_sum = weight_normal_sum + weight_opa_sum;

Expand All @@ -816,7 +804,6 @@ static void generate_report(void)
lv_obj_clean(lv_scr_act());
scene_bg = NULL;


lv_obj_set_flex_flow(lv_scr_act(), LV_FLEX_FLOW_COLUMN);

title = lv_label_create(lv_scr_act());
Expand Down Expand Up @@ -852,7 +839,6 @@ static void generate_report(void)
// lv_obj_add_style(table, LV_TABLE_PART_CELL3, &style_cell_very_slow);
// lv_obj_add_style(table, LV_TABLE_PART_CELL4, &style_cell_title);


uint16_t row = 0;
lv_table_add_cell_ctrl(table, row, 0, LV_TABLE_CELL_CTRL_MERGE_RIGHT);
lv_table_set_cell_value(table, row, 0, "Slow but common cases");
Expand Down Expand Up @@ -939,7 +925,6 @@ static void generate_report(void)
lv_snprintf(buf, sizeof(buf), "%"LV_PRIu32, scenes[i].fps_opa);
lv_table_set_cell_value(table, row, 1, buf);


if(scenes[i].fps_opa < 10) {
// lv_table_set_cell_type(table, row, 0, 3);
// lv_table_set_cell_type(table, row, 1, 3);
Expand Down Expand Up @@ -1051,7 +1036,6 @@ static void next_scene_timer_cb(lv_timer_t * timer)
}
}


static void rect_create(lv_style_t * style)
{
uint32_t i;
Expand All @@ -1069,7 +1053,6 @@ static void rect_create(lv_style_t * style)
}
}


static void img_create(lv_style_t * style, const void * src, bool rotate, bool zoom, bool aa)
{
uint32_t i;
Expand All @@ -1088,7 +1071,6 @@ static void img_create(lv_style_t * style, const void * src, bool rotate, bool z
}
}


static void txt_create(lv_style_t * style)
{
uint32_t i;
Expand All @@ -1104,7 +1086,6 @@ static void txt_create(lv_style_t * style)
}
}


static void line_create(lv_style_t * style)
{
static lv_point_t points[OBJ_NUM][LINE_POINT_NUM];
Expand All @@ -1119,7 +1100,6 @@ static void line_create(lv_style_t * style)
points[i][j].y = rnd_next(LINE_POINT_DIFF_MIN, LINE_POINT_DIFF_MAX);
}


lv_obj_t * obj = lv_line_create(scene_bg);
lv_obj_remove_style_all(obj);
lv_obj_add_style(obj, style, 0);
Expand All @@ -1132,7 +1112,6 @@ static void line_create(lv_style_t * style)
}
}


static void arc_anim_end_angle_cb(void * var, int32_t v)
{
lv_arc_set_end_angle(var, v);
Expand Down Expand Up @@ -1166,7 +1145,6 @@ static void arc_create(lv_style_t * style)
}
}


static void fall_anim_y_cb(void * var, int32_t v)
{
lv_obj_set_y(var, v);
Expand Down
1 change: 0 additions & 1 deletion demos/benchmark/lv_demo_benchmark.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ extern "C" {
**********************/
typedef void finished_cb_t(void);


/**********************
* GLOBAL PROTOTYPES
**********************/
Expand Down
1 change: 0 additions & 1 deletion demos/lv_demos.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ extern "C" {
* GLOBAL PROTOTYPES
**********************/


/**********************
* MACROS
**********************/
Expand Down
Binary file added demos/music/assets/272_png/btn_list_pause.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demos/music/assets/272_png/btn_list_play.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demos/music/assets/272_png/btn_loop.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demos/music/assets/272_png/btn_next.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demos/music/assets/272_png/btn_pause.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demos/music/assets/272_png/btn_play.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demos/music/assets/272_png/btn_prev.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demos/music/assets/272_png/btn_rnd.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demos/music/assets/272_png/corner_1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demos/music/assets/272_png/corner_2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demos/music/assets/272_png/cover_1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demos/music/assets/272_png/cover_2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demos/music/assets/272_png/cover_3.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demos/music/assets/272_png/icn_chart.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demos/music/assets/272_png/icn_chat.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demos/music/assets/272_png/icn_download.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demos/music/assets/272_png/icn_heart.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demos/music/assets/272_png/icn_slider.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demos/music/assets/272_png/list_border.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demos/music/assets/272_png/wave_bottom.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demos/music/assets/272_png/wave_top.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demos/music/assets/480_png/btn_list_pause.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demos/music/assets/480_png/btn_list_play.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demos/music/assets/480_png/btn_loop.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demos/music/assets/480_png/btn_next.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demos/music/assets/480_png/btn_pause.png
Binary file added demos/music/assets/480_png/btn_play.png
Binary file added demos/music/assets/480_png/btn_prev.png
Binary file added demos/music/assets/480_png/btn_rnd.png
Binary file added demos/music/assets/480_png/corner_1.png
Binary file added demos/music/assets/480_png/corner_2.png
Binary file added demos/music/assets/480_png/cover_1.png
Binary file added demos/music/assets/480_png/cover_2.png
Binary file added demos/music/assets/480_png/cover_3.png
Binary file added demos/music/assets/480_png/icn_chart.png
Binary file added demos/music/assets/480_png/icn_chat.png
Binary file added demos/music/assets/480_png/icn_download.png
Binary file added demos/music/assets/480_png/icn_heart.png
Binary file added demos/music/assets/480_png/icn_slider.png
Binary file added demos/music/assets/480_png/list_border.png
Binary file added demos/music/assets/480_png/wave_bottom.png
Binary file added demos/music/assets/480_png/wave_top.png
3 changes: 0 additions & 3 deletions demos/music/lv_demo_music_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ lv_obj_t * _lv_demo_music_list_create(lv_obj_t * parent)
return list;
}


void _lv_demo_music_list_close(void)
{
lv_style_reset(&style_scrollbar);
Expand Down Expand Up @@ -218,7 +217,6 @@ static lv_obj_t * add_list_btn(lv_obj_t * parent, uint32_t track_id)
return btn;
}


static void btn_click_event_cb(lv_event_t * e)
{
lv_obj_t * btn = lv_event_get_target(e);
Expand All @@ -228,4 +226,3 @@ static void btn_click_event_cb(lv_event_t * e)
_lv_demo_music_play(idx);
}
#endif /*LV_USE_DEMO_MUSIC*/

3 changes: 0 additions & 3 deletions demos/music/lv_demo_music_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,6 @@ static void next_click_event_cb(lv_event_t * e)
}
}


static void timer_cb(lv_timer_t * t)
{
LV_UNUSED(t);
Expand All @@ -996,7 +995,6 @@ static void spectrum_end_cb(lv_anim_t * a)
_lv_demo_music_album_next(true);
}


static void stop_start_anim_timer_cb(lv_timer_t * t)
{
LV_UNUSED(t);
Expand All @@ -1010,4 +1008,3 @@ static void album_fade_anim_cb(void * var, int32_t v)
lv_obj_set_style_img_opa(var, v, 0);
}
#endif /*LV_USE_DEMO_MUSIC*/

1 change: 0 additions & 1 deletion demos/music/lv_demo_music_main.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ void _lv_demo_music_album_next(bool next);
**********************/
#endif /*LV_USE_DEMO_MUSIC*/


#ifdef __cplusplus
} /* extern "C" */
#endif
Expand Down
1 change: 0 additions & 1 deletion demos/stress/lv_demo_stress.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ static void obj_test_timer_cb(lv_timer_t * tmr)
lv_obj_set_size(main_page, LV_HOR_RES / 2, LV_VER_RES);
lv_obj_set_flex_flow(main_page, LV_FLEX_FLOW_COLUMN);


obj = lv_btn_create(main_page);
lv_obj_set_size(obj, 100, 70);
obj = lv_label_create(obj);
Expand Down