From 6ccd5455c14d4a4f6812aab42f8368b818ff44ec Mon Sep 17 00:00:00 2001 From: Justus Date: Sun, 16 Jan 2022 20:35:20 +0800 Subject: [PATCH] add bongocat fix courtesy of fossephate and petejohanson --- app/src/display/widgets/bongo_cat.c | 2 +- app/src/display/widgets/bongo_cat_images.c | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/app/src/display/widgets/bongo_cat.c b/app/src/display/widgets/bongo_cat.c index 3824f5bb..1eb77d16 100644 --- a/app/src/display/widgets/bongo_cat.c +++ b/app/src/display/widgets/bongo_cat.c @@ -63,7 +63,7 @@ void update_bongo_cat_wpm(struct zmk_widget_bongo_cat *widget, int wpm) { lv_anim_set_time(&widget->anim, 1000); lv_anim_set_values(&widget->anim, 0, 4); lv_anim_set_exec_cb(&widget->anim, set_img_src); - lv_anim_set_repeat_count(&widget->anim, 10); + lv_anim_set_repeat_count(&widget->anim, 1000); lv_anim_set_repeat_delay(&widget->anim, 100); images = idle_images; current_anim_state = anim_state_idle; diff --git a/app/src/display/widgets/bongo_cat_images.c b/app/src/display/widgets/bongo_cat_images.c index 1b3f2f49..161c103b 100644 --- a/app/src/display/widgets/bongo_cat_images.c +++ b/app/src/display/widgets/bongo_cat_images.c @@ -10,8 +10,8 @@ const LV_ATTRIBUTE_MEM_ALIGN LV_ATTRIBUTE_LARGE_CONST LV_ATTRIBUTE_IMG_FAST_IMG1 uint8_t fast_img1_map[] = { - 0x04, 0x02, 0x04, 0xff, /*Color of index 0*/ 0xfc, 0xfe, 0xfc, 0xff, /*Color of index 1*/ + 0x04, 0x02, 0x04, 0xff, /*Color of index 0*/ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x00, 0x00, @@ -73,8 +73,8 @@ const lv_img_dsc_t fast_img1 = { const LV_ATTRIBUTE_MEM_ALIGN LV_ATTRIBUTE_LARGE_CONST LV_ATTRIBUTE_IMG_FAST_IMG2 uint8_t fast_img2_map[] = { - 0x04, 0x02, 0x04, 0xff, /*Color of index 0*/ 0xfc, 0xfe, 0xfc, 0xff, /*Color of index 1*/ + 0x04, 0x02, 0x04, 0xff, /*Color of index 0*/ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x00, 0x00, @@ -136,8 +136,8 @@ const lv_img_dsc_t fast_img2 = { const LV_ATTRIBUTE_MEM_ALIGN LV_ATTRIBUTE_LARGE_CONST LV_ATTRIBUTE_IMG_IDLE_IMG1 uint8_t idle_img1_map[] = { - 0x04, 0x02, 0x04, 0xff, /*Color of index 0*/ 0xfc, 0xfe, 0xfc, 0xff, /*Color of index 1*/ + 0x04, 0x02, 0x04, 0xff, /*Color of index 0*/ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x00, 0x00, @@ -199,8 +199,8 @@ const lv_img_dsc_t idle_img1 = { const LV_ATTRIBUTE_MEM_ALIGN LV_ATTRIBUTE_LARGE_CONST LV_ATTRIBUTE_IMG_IDLE_IMG2 uint8_t idle_img2_map[] = { - 0x04, 0x02, 0x04, 0xff, /*Color of index 0*/ 0xfc, 0xfe, 0xfc, 0xff, /*Color of index 1*/ + 0x04, 0x02, 0x04, 0xff, /*Color of index 0*/ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, @@ -262,8 +262,8 @@ const lv_img_dsc_t idle_img2 = { const LV_ATTRIBUTE_MEM_ALIGN LV_ATTRIBUTE_LARGE_CONST LV_ATTRIBUTE_IMG_IDLE_IMG3 uint8_t idle_img3_map[] = { - 0x04, 0x02, 0x04, 0xff, /*Color of index 0*/ 0xfc, 0xfe, 0xfc, 0xff, /*Color of index 1*/ + 0x04, 0x02, 0x04, 0xff, /*Color of index 0*/ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, @@ -325,8 +325,8 @@ const lv_img_dsc_t idle_img3 = { const LV_ATTRIBUTE_MEM_ALIGN LV_ATTRIBUTE_LARGE_CONST LV_ATTRIBUTE_IMG_IDLE_IMG4 uint8_t idle_img4_map[] = { - 0x04, 0x02, 0x04, 0xff, /*Color of index 0*/ 0xfc, 0xfe, 0xfc, 0xff, /*Color of index 1*/ + 0x04, 0x02, 0x04, 0xff, /*Color of index 0*/ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, @@ -388,8 +388,8 @@ const lv_img_dsc_t idle_img4 = { const LV_ATTRIBUTE_MEM_ALIGN LV_ATTRIBUTE_LARGE_CONST LV_ATTRIBUTE_IMG_IDLE_IMG5 uint8_t idle_img5_map[] = { - 0x04, 0x02, 0x04, 0xff, /*Color of index 0*/ 0xfc, 0xfe, 0xfc, 0xff, /*Color of index 1*/ + 0x04, 0x02, 0x04, 0xff, /*Color of index 0*/ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x00, 0x00, 0x00, 0x00, @@ -451,8 +451,8 @@ const lv_img_dsc_t idle_img5 = { const LV_ATTRIBUTE_MEM_ALIGN LV_ATTRIBUTE_LARGE_CONST LV_ATTRIBUTE_IMG_SLOW_IMG uint8_t slow_img_map[] = { - 0x04, 0x02, 0x04, 0xff, /*Color of index 0*/ 0xfc, 0xfe, 0xfc, 0xff, /*Color of index 1*/ + 0x04, 0x02, 0x04, 0xff, /*Color of index 0*/ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x00, 0x00, 0x00, 0x00,