Skip to content

Commit

Permalink
feat: Buzzer Eko
Browse files Browse the repository at this point in the history
  • Loading branch information
JahazielLem committed Oct 16, 2024
1 parent ad8a6a9 commit efd3d09
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 4 deletions.
1 change: 1 addition & 0 deletions firmware/components/buzzer/include/buzzer.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <stdint.h>
#pragma once

/**
Expand Down
73 changes: 69 additions & 4 deletions firmware/main/general/bitmaps_general.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -172,20 +212,45 @@ 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,
MININO_PWNLABS,
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

0 comments on commit efd3d09

Please sign in to comment.