From efd3d0995887690c983903532260b2e483bff961 Mon Sep 17 00:00:00 2001 From: Kevin Jahaziel Leon Morales Date: Wed, 16 Oct 2024 10:56:38 -0600 Subject: [PATCH] feat: Buzzer Eko --- firmware/components/buzzer/include/buzzer.h | 1 + firmware/main/general/bitmaps_general.h | 73 +++++++++++++++++++-- 2 files changed, 70 insertions(+), 4 deletions(-) diff --git a/firmware/components/buzzer/include/buzzer.h b/firmware/components/buzzer/include/buzzer.h index 32702c19..a26e0d4e 100644 --- a/firmware/components/buzzer/include/buzzer.h +++ b/firmware/components/buzzer/include/buzzer.h @@ -1,3 +1,4 @@ +#include #pragma once /** diff --git a/firmware/main/general/bitmaps_general.h b/firmware/main/general/bitmaps_general.h index 562822d4..a5af28cb 100644 --- a/firmware/main/general/bitmaps_general.h +++ b/firmware/main/general/bitmaps_general.h @@ -95,6 +95,46 @@ const unsigned char epd_bitmap_baby_dragon_ss[] = { 0x00, 0x68, 0x72, 0x00, 0x00, 0x10, 0x89, 0x80, 0x00, 0x11, 0x08, 0x40, 0x00, 0x0e, 0x07, 0xc0, 0x00, 0x00, 0x00, 0x00}; +// '2015', 32x32px +const unsigned char epd_bitmap_eko_2015[] = { + 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, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x0f, 0xc0, 0x00, 0x00, 0x0f, 0xff, 0xff, 0x00, 0x0f, 0xff, 0xff, 0x00, + 0x0f, 0xff, 0xff, 0x00, 0x07, 0xfe, 0xfd, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 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, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; +// '2014', 32x32px +const unsigned char epd_bitmap_eko_2014[] = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x03, 0x00, 0x00, 0x00, 0x03, 0xec, 0x00, 0x00, 0xdf, 0xfc, 0x00, + 0x01, 0xff, 0xfe, 0x00, 0x00, 0xff, 0x7f, 0x80, 0x01, 0xf0, 0x0f, 0xe0, + 0x01, 0xe0, 0x07, 0xc0, 0x0f, 0xc0, 0x03, 0xe0, 0x0f, 0x80, 0x1d, 0xe0, + 0x07, 0xbf, 0xfd, 0xe0, 0x07, 0xbf, 0xf8, 0xf0, 0x07, 0x3f, 0xfc, 0xf8, + 0x07, 0x3f, 0xfc, 0x70, 0x07, 0x3f, 0xf8, 0x70, 0x1f, 0x1f, 0xf8, 0xf0, + 0x07, 0x8f, 0xf8, 0xf0, 0x07, 0x8f, 0xfd, 0xf0, 0x07, 0xcc, 0x01, 0xf0, + 0x03, 0xc0, 0x03, 0xe0, 0x07, 0xf0, 0x07, 0xc0, 0x07, 0xf8, 0x0f, 0x80, + 0x00, 0x7f, 0xff, 0x00, 0x00, 0x3f, 0xff, 0x80, 0x00, 0x1f, 0xf9, 0x00, + 0x00, 0x18, 0xe0, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; +// '2016', 32x32px +const unsigned char epd_bitmap_eko_2016[] = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x60, 0x00, 0x00, 0x18, 0xf8, 0x00, 0x00, 0x7f, 0xfc, 0x00, + 0x00, 0xff, 0xfc, 0x00, 0x00, 0xff, 0xfe, 0x00, 0x00, 0xf3, 0xcf, 0xc0, + 0x01, 0xff, 0xff, 0xe0, 0x07, 0xff, 0xff, 0xe0, 0x0f, 0xff, 0xfd, 0xf0, + 0x0f, 0x7a, 0x3e, 0xf0, 0x0f, 0xf8, 0x1f, 0xe0, 0x0f, 0xf8, 0x10, 0xe0, + 0x07, 0x00, 0x3c, 0xe0, 0x07, 0x2f, 0xb8, 0xe0, 0x07, 0x1e, 0xe0, 0xf0, + 0x07, 0x14, 0x06, 0xf0, 0x0f, 0x7f, 0xfe, 0xf0, 0x0f, 0xff, 0xfd, 0xf0, + 0x07, 0xff, 0xff, 0xe0, 0x07, 0xff, 0xff, 0x80, 0x03, 0xf3, 0xcf, 0x00, + 0x00, 0x7f, 0xff, 0x00, 0x00, 0x3f, 0xff, 0x00, 0x00, 0x3f, 0xfe, 0x00, + 0x00, 0x1f, 0x18, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; + // 'arrow_left', 16x16px static const unsigned char epd_bitmap_arrow_left[] = { 0x01, 0x80, 0x03, 0x80, 0x07, 0x80, 0x0f, 0x80, 0x1f, 0x80, 0x3f, @@ -172,6 +212,24 @@ const epd_bitmap_t minino_baby_dragon_bitmap = { .height = 32, }; +const epd_bitmap_t minino_eko_2015_bitmap = { + .bitmap = epd_bitmap_eko_2015, + .width = 32, + .height = 32, +}; + +const epd_bitmap_t minino_eko_2014_bitmap = { + .bitmap = epd_bitmap_eko_2014, + .width = 32, + .height = 32, +}; + +const epd_bitmap_t minino_eko_2016_bitmap = { + .bitmap = epd_bitmap_eko_2016, + .width = 32, + .height = 32, +}; + typedef enum { MININO_LETTERS, MININO_FACE, @@ -179,13 +237,20 @@ typedef enum { MININO_ELECTRONICCATS, MININO_FACE_MINI, MININO_BABY_DRAGON, + MININO_EKO_2014, + MININO_EKO_2015, + MININO_EKO_2016, MININO_COUNT } epd_bitmap_type_t; epd_bitmap_t screen_savers[] = { - minino_letters_bitmap, minino_face_logo, minino_pwnlabs_logo, - minino_electroniccats_logo, minino_face_bitmap, minino_baby_dragon_bitmap}; + minino_letters_bitmap, minino_face_logo, + minino_pwnlabs_logo, minino_electroniccats_logo, + minino_face_bitmap, minino_baby_dragon_bitmap, + minino_eko_2014_bitmap, minino_eko_2015_bitmap, + minino_eko_2016_bitmap}; -char* epd_bitmaps_list[] = {"Letters", "Face", "PwnLabs", "EC", - "Mini face", "Baby Dragon", NULL}; +char* epd_bitmaps_list[] = {"Letters", "Face", "PwnLabs", "EC", + "Mini face", "Baby Dragon", "EKO 2014", "EKO 2015", + "EKO 2016", NULL}; #endif // BITMAPS_GENERAL_H \ No newline at end of file