Created
July 17, 2024 05:28
-
-
Save drashna/2d2c7d5234fd19dc437ac1df4172b4ed to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include QMK_KEYBOARD_H | |
#ifdef OLED_ENABLE | |
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |
[0] = LAYOUT_ortho_2x4( | |
KC_1, KC_2, KC_3, KC_4, | |
KC_5, KC_6, KC_7, KC_8 | |
) | |
}; | |
static const unsigned char PROGMEM animiation[][512+1] = { | |
{ | |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,240,248,248,248,248,252,252,252,252,252,252,252,252,252,252, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,255,255,255,255,255,255,255, 1, 0, 0, 0, 0, 7, 7, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,255,255,255,255,255,255,255, 1, 1, 1, 63, 63,255,255,255,255,255,255, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 15, 31, 31, 31, 31, 31, 30, 60, 60, 60, 60, 63, 63, 63, 31, 31, 31, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
}, | |
{ | |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,240,248,248,248,248,252,252,252,252,252,252,252,252,252,248, 0, 0, 0, 0, 24,248,252,252,252,252,252, 60, 60, 60, 60, 60,248,248,240,192, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,255,255,255,255,255,255,255, 0, 0, 0, 0, 0, 7, 7, 7, 0, 0, 0, 0, 0,255,255,255,255,255,255, 0, 0, 0, 0, 0,255,255,255,255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,225,255,255,255,255,255,255,255, 1, 1, 1, 63, 63,255,255,255,255,255,255, 1,249,255,255,255,255, 31, 31, 31,127,255,255,255,255,255,227,129, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 15, 31, 31, 31, 31, 31, 31, 62, 60, 60, 60, 60, 63, 63, 63, 31, 31, 31, 0, 15, 15, 15, 15, 15, 0, 0, 0, 0, 15, 63, 31, 31, 31, 31, 31, 28, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
}, | |
{ | |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,240,248,248,248,248,252,252,252,252,252,252,252,252,252,248, 0, 0, 0, 0, 56,248,252,252,252,252,252, 60, 60, 60, 60, 60,248,248,240,192, 0, 0, 0,248,248,248,248,248,252,252,252, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,255,255,255,255,255,255,255, 0, 0, 0, 0, 3, 7, 7, 7, 0, 0, 0, 0, 0,255,255,255,255,255,255, 0, 0, 0, 0, 0,255,255,255,255, 0, 0, 0, 1,255,255,255,255,255,255,255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,253,255,255,255,255,255,255,255, 1, 1, 1, 63, 63,255,255,255,255,255,255, 1,255,255,255,255,255, 31, 31, 31,255,255,255,255,255,255,227, 1, 1, 1, 1,241,255,255,255,255,255,255,127, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 15, 31, 31, 31, 31, 31, 31, 60, 60, 60, 60, 60, 63, 63, 63, 31, 31, 31, 0, 15, 15, 15, 15, 15, 0, 0, 0, 0, 31, 63, 31, 31, 31, 31, 31, 28, 0, 16, 63, 63, 63, 63, 63, 63, 63, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
}, | |
{ | |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,240,248,248,248,248,252,252,252,252,252,252,252,252,252,248, 0, 0, 0, 0, 24,248,252,252,252,252,252, 60, 60, 60, 60, 60,248,248,240,192, 0, 0, 0,248,248,248,248,248,248,252,252, 8, 0,248,248,248,248,248,248,248,240, 0, 0, 0, 0, 0,248,252,252,252,252,252,252, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,255,255,255,255,255,255,255, 0, 0, 0, 0, 0, 7, 7, 7, 0, 0, 0, 0, 0,255,255,255,255,255,255, 0, 0, 0, 0, 0,255,255,255,255, 0, 0, 0, 1,255,255,255,255,255,255,255, 0, 0,255,255,255,255,255, 7,127,255,255,240,128,224,255,255,255,255,255,255,255,255, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,225,255,255,255,255,255,255,255, 1, 1, 1, 63, 63,255,255,255,255,255,255, 1,249,255,255,255,255, 31, 31, 31,127,255,255,255,255,255,227,129, 1, 1, 1,225,255,255,255,255,255,255,255, 1, 1,255,255,255,255,255,253, 1, 15,255,255,255,255,255, 15, 3,255,255,255,255,255, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 15, 31, 31, 31, 31, 31, 31, 62, 60, 60, 60, 60, 63, 63, 63, 31, 31, 31, 0, 15, 15, 15, 15, 15, 0, 0, 0, 0, 15, 63, 31, 31, 31, 31, 31, 28, 0, 16, 63, 63, 63, 63, 63, 63, 63, 3, 0, 0, 31, 31, 31, 31, 31, 31, 0, 0, 0, 31, 31, 31, 1, 0, 24, 63, 63, 63, 63, 63, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
}, | |
{ | |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,240,248,248,248,248,252,252,252,252,252,252,252,252,252,248, 0, 0, 0, 0,248,248,252,252,252,252,252, 60, 60, 60, 60,124,248,248,240,128, 0, 0,248,248,248,248,248,248,252,252,252, 0,240,248,248,248,248,248,248,248,224, 0, 0, 0, 0,128,252,252,252,252,252,252,248, 0,128,248,248,252,252, 60, 28, 28, 60,252,252,252,248,248,240,224, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,192,255,255,255,255,255,255,255, 0, 0, 0, 0, 7, 7, 7, 7, 0, 0, 0, 0,243,255,255,255,255,255,255, 0, 0, 0, 0,128,255,255,255, 63, 0, 0, 0, 1,255,255,255,255,255,255,127, 0, 3,255,255,255,255,255, 7,255,255,254,224, 0,240,255,255,255,255,255,255,255,255, 0,255,255,255,255,255,224,224,224,224,255,255,127,127, 63, 63, 31, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,255,255,255,255,255,255,255,255, 1, 1, 13, 63, 63,255,255,255,255,255,249, 1,255,255,255,255, 31, 31, 31, 31,255,255,255,255,255,255,227, 1, 1, 1, 1,249,255,255,255,255,255,255, 1, 1, 1,255,255,255,255,255, 1, 1, 31,255,255,255,255,127, 7,251,255,255,255,255,255, 1,255,255,255,255, 3, 3, 3, 3, 7, 7, 7, 7, 7, 15,255,255,253,193, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 15, 31, 31, 31, 31, 31, 31, 60, 60, 60, 60, 60, 63, 63, 31, 31, 31, 31, 0, 15, 15, 15, 15, 0, 0, 0, 0, 1, 31, 63, 31, 31, 31, 31, 31, 24, 0, 28, 63, 63, 63, 63, 63, 63, 63, 0, 0, 0, 31, 31, 31, 31, 31, 16, 0, 0, 3, 31, 31, 15, 0, 0, 31, 63, 63, 63, 63, 63, 0, 31, 63, 63, 63, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 15, 15, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
}, | |
{ | |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,248,248,248,248,252,252,252,252,252,252,252,252,252,252,248, 0, 0, 0, 0,248,248,252,252,252,252,252, 60, 60, 60, 60,252,248,240,224, 0, 0, 0,248,248,248,248,248,248,252,252,252, 0,248,248,248,248,248,248,248,248,192, 0, 0, 0, 0,192,252,252,252,252,252,252,224, 0,248,248,248,252,252, 28, 28, 28, 60,252,252,252,248,248,240,224, 0, 0, 0,252,252,252,252,252,252,252,252,252,252,252,252,252,252,252,252, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,248,255,255,255,255,255,255,255, 0, 0, 0, 0, 7, 7, 7, 7, 0, 0, 0, 0,255,255,255,255,255,255,255, 0, 0, 0, 0,192,255,255,255, 30, 0, 0, 0, 1,255,255,255,255,255,255, 15, 0, 3,255,255,255,255,255, 15,255,255,254,224, 0,248,255,255,255,255,255,255,255,255, 0,255,255,255,255,255,224,224,224,224,255,255,127,127, 63, 63, 31, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1,193,225,241,251,255,255, 63, 31, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,255,255,255,255,255,255,255,255, 1, 1, 31, 63, 63,255,255,255,255,255,193, 1,255,255,255,255, 31, 31, 31, 31,255,255,255,255,255,255,195, 1, 1, 1, 1,253,255,255,255,255,255,255, 1, 1, 1,255,255,255,255,255, 1, 1, 63,255,255,255,255,127, 3,255,255,255,255,255,255, 1,255,255,255, 31, 3, 3, 3, 3, 7, 7, 7, 7, 7, 15,255,255,249,129, 1, 1,193,225,241,249,253,255,255,223,207,199,195,193,193,193,225,225,225, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 15, 31, 31, 31, 31, 31, 31, 60, 60, 60, 60, 60, 63, 63, 31, 31, 31, 31, 0, 15, 15, 15, 15, 0, 0, 0, 0, 3, 31, 63, 31, 31, 31, 31, 30, 24, 0, 30, 63, 63, 63, 63, 63, 63, 31, 0, 0, 0, 31, 31, 31, 31, 31, 0, 0, 0, 7, 31, 31, 7, 0, 0, 31, 63, 63, 63, 63, 63, 0, 31, 63, 63, 63, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 15, 15, 15, 15, 0, 0, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 30, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
}, | |
{ | |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,128,128,192,192,192,192,192,224,224,224,224,224,224,224, 0, 0, 0, 0,240,240,240,240,240,240,240, 48, 48, 48, 48,240,240,240,224, 0, 0, 0,240,240,240,240,240,240,240,240,240, 0,240,240,240,224,224,224,224,224,192, 0, 0, 0, 0,192,240,240,240,240,240,248,224, 0,248,248,248,248,248, 24, 24, 24, 56,248,248,248,248,240,240,224, 0, 0, 0,248,248,248,248,240,240,240,240,240,240,224,224,224,224,192,128, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,248,255,255,255,255,255,255,255, 0, 0, 0, 0, 7, 7, 7, 7, 0, 0, 0, 0,255,255,255,255,255,255,255, 0, 0, 0, 0,192,255,255,255, 30, 0, 0, 0, 1,255,255,255,255,255,255, 15, 0, 3,255,255,255,255,255, 15,255,255,254,224, 0,248,255,255,255,255,255,255,255,255, 0,255,255,255,255,255,224,224,224,224,255,255,127,127, 63, 63, 31, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1,193,225,241,251,255,255, 63, 31, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,255,255,255,255,255,255,255,255, 1, 1, 31, 63, 63,255,255,255,255,255,193, 1,255,255,255,255, 31, 31, 31, 31,255,255,255,255,255,255,195, 1, 1, 1, 1,253,255,255,255,255,255,255, 1, 1, 1,255,255,255,255,255, 1, 1, 63,255,255,255,255,127, 3,255,255,255,255,255,255, 1,255,255,255, 31, 3, 3, 3, 3, 7, 7, 7, 7, 7, 15,255,255,249,129, 1, 1,193,225,241,249,253,255,255,223,207,199,195,193,193,193,225,225,225, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 3, 3, 7, 7, 12, 12, 12, 12, 12, 15, 15, 15, 15, 15, 15, 0, 15, 15, 15, 15, 0, 0, 0, 0, 3, 15, 15, 15, 15, 15, 15, 14, 8, 0, 14, 15, 15, 15, 15, 15, 15, 15, 0, 0, 0, 15, 15, 15, 15, 15, 0, 0, 0, 7, 7, 7, 7, 0, 0, 7, 7, 15, 15, 15, 15, 0, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 0, 0, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 7, 7, 7, 3, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
}, | |
{ | |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,128,128,128,128, 0, 0, 0, 0,128,128,128,192,192,192,192, 32, 32, 32, 32,224,192,192,128, 0, 0, 0,192,192,192,192,224,224,224,224,128, 0,192,192,224,224,224,224,224,192,128, 0, 0, 0, 0,192,224,224,224,224,192,192,128, 0,128,224,224,240,240, 16, 16, 16, 48,240,240,224,224,192,128,128, 0, 0, 0,128,128,192,192,192,192,192,224,224,192,192,192,192,128, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,192,240,248,248,252,254, 0, 0, 0, 0, 7, 7, 7, 7, 0, 0, 0, 0,255,255,255,255,255,255,255, 0, 0, 0, 0,192,255,255,255, 30, 0, 0, 0, 1,255,255,255,255,255,255, 15, 0, 3,255,255,255,255,255, 15,255,255,254,224, 0,248,255,255,255,255,255,255,255,255, 0,255,255,255,255,255,224,224,224,224,255,255,127,127, 63, 63, 31, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1,193,225,241,251,255,255, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 31, 63,127,255, 1, 1, 31, 63, 63,255,255,255,255,255,193, 1,255,255,255,255, 31, 31, 31, 31,255,255,255,255,255,255,195, 1, 1, 1, 1,253,255,255,255,255,255,255, 1, 1, 1,255,255,255,255,255, 1, 1, 63,255,255,255,255,127, 3,255,255,255,255,255,127, 1,255,255,255, 31, 3, 3, 3, 3, 7, 7, 7, 7, 7, 15,255,255,249, 1, 1, 1,193,225,241,249,253,255,255,223,207,199,195,193,193,193, 33, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 3, 3, 3, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
}, | |
{ | |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,192,224,240,240,240,240, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,252,252,252,252,240,224,224, 0, 0, 0, 0,192,252,252,252, 30, 0, 0, 0, 1,254,248,224,192,192,252, 12, 0, 0,252,252,224,224,252, 0,224,248,252,224, 0,248,254,248,248,252,254,192,192,248, 0,254,224,192,192,252,224,224,224,224,240,248,126,112, 48, 60, 24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,192,192,224,240,248,224, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 15, 3, 3, 1, 1, 7, 15, 31,127, 31, 3, 3, 31, 1, 1, 7, 3, 3, 3, 3, 3, 3, 7, 7, 15, 15, 31, 7, 3, 3, 1, 1, 1, 1, 1, 7, 15, 31, 31, 7, 3, 1, 1, 1, 7, 31, 63, 15, 15, 1, 1, 63,127, 63, 31, 15, 3, 3, 63, 63, 7, 7, 7, 7, 1, 15, 15, 15, 7, 3, 3, 3, 3, 7, 7, 7, 7, 7, 15, 31, 63, 25, 1, 1, 1,193, 97,113, 25, 29, 15, 15, 7, 7, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | |
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
}, | |
}; | |
void render_animation(void) { | |
static uint16_t timer = 0; | |
static uint8_t i = 0; | |
if (timer_elapsed(timer) > 200) { | |
timer = timer_read(); | |
i = (i + 1) % ARRAY_SIZE(animation); | |
} | |
oled_write_raw_P(animiation[i], sizeof(animation[0])); | |
} | |
bool oled_task_user(void) { | |
render_animation(); | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment