diff options
| author | Isaac <winternebs@gmail.com> | 2020-10-04 15:35:03 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-04 12:35:03 -0700 |
| commit | 1afb394d598bb29fcbe1313e2a243953e8479b7e (patch) | |
| tree | 2cefd6731991cf163cd893dc6059a0ec229385e0 | |
| parent | 1aacbc44d18a1d23c58561ee17498618a1e6319d (diff) | |
| download | qmk_firmware-1afb394d598bb29fcbe1313e2a243953e8479b7e.tar.gz qmk_firmware-1afb394d598bb29fcbe1313e2a243953e8479b7e.zip | |
[Keymap] Add winterNebs keymaps (#10328)
* Add kyria keymap
* Add planck keymap
* Add nyquist keymap
* Add vim movement instead of regular movement layer
* Use partial home row mods :)
* Update keyboards/keebio/nyquist/keymaps/winterNebs/config.h
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update keyboards/keebio/nyquist/keymaps/winterNebs/keymap.c
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update keyboards/keebio/nyquist/keymaps/winterNebs/keymap.c
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update keyboards/keebio/nyquist/keymaps/winterNebs/keymap.c
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update keyboards/keebio/nyquist/keymaps/winterNebs/keymap.c
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update keyboards/kyria/keymaps/winterNebs/keymap.c
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update keyboards/kyria/keymaps/winterNebs/rules.mk
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update keyboards/planck/keymaps/winterNebs/keymap.c
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update keyboards/planck/keymaps/winterNebs/keymap.c
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update keyboards/planck/keymaps/winterNebs/keymap.c
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Fix outdated function call
* Apply suggestions from code review
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update keyboards/kyria/keymaps/winterNebs/keymap.c
somehow this wasn't added to the batch?
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* remove deprecated function
* Rename to lowercase
* Update keyboards/planck/keymaps/winterNebs/keymap.c
Co-authored-by: Drashna Jaelre <drashna@live.com>
* fix oled path
* rebase and add back nyquist that was lost by rename
* Add licenses
* License in the wrong file
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
| -rwxr-xr-x | keyboards/keebio/nyquist/keymaps/winternebs/config.h | 42 | ||||
| -rwxr-xr-x | keyboards/keebio/nyquist/keymaps/winternebs/keymap.c | 143 | ||||
| -rwxr-xr-x | keyboards/keebio/nyquist/keymaps/winternebs/rules.mk | 3 | ||||
| -rwxr-xr-x | keyboards/kyria/keymaps/winternebs/config.h | 31 | ||||
| -rwxr-xr-x | keyboards/kyria/keymaps/winternebs/glcdfont.c | 55 | ||||
| -rwxr-xr-x | keyboards/kyria/keymaps/winternebs/keymap.c | 725 | ||||
| -rwxr-xr-x | keyboards/kyria/keymaps/winternebs/rules.mk | 12 | ||||
| -rwxr-xr-x | keyboards/planck/keymaps/winternebs/config.h | 61 | ||||
| -rwxr-xr-x | keyboards/planck/keymaps/winternebs/keymap.c | 162 | ||||
| -rwxr-xr-x | keyboards/planck/keymaps/winternebs/readme.md | 1 | ||||
| -rwxr-xr-x | keyboards/planck/keymaps/winternebs/rules.mk | 1 |
11 files changed, 1236 insertions, 0 deletions
diff --git a/keyboards/keebio/nyquist/keymaps/winternebs/config.h b/keyboards/keebio/nyquist/keymaps/winternebs/config.h new file mode 100755 index 000000000..263af1de9 --- /dev/null +++ b/keyboards/keebio/nyquist/keymaps/winternebs/config.h | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2017 Danny Nguyen <danny@hexwire.com> | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #pragma once | ||
| 19 | |||
| 20 | // #define USE_I2C | ||
| 21 | |||
| 22 | /* Select hand configuration */ | ||
| 23 | // #define MASTER_RIGHT | ||
| 24 | // #define EE_HANDS | ||
| 25 | |||
| 26 | #undef RGBLED_NUM | ||
| 27 | #define RGBLIGHT_ANIMATIONS | ||
| 28 | #define RGBLED_NUM 12 | ||
| 29 | #define RGBLIGHT_HUE_STEP 8 | ||
| 30 | #define RGBLIGHT_SAT_STEP 8 | ||
| 31 | #define RGBLIGHT_VAL_STEP 8 | ||
| 32 | |||
| 33 | #define MOUSEKEY_DELAY 80 | ||
| 34 | #define MOUSEKEY_INTERVAL 16 | ||
| 35 | #define MOUSEKEY_MAXSPEED 6 | ||
| 36 | #define MOUSEKEY_TIME_TO_MAX 10 | ||
| 37 | #define MOUSEKEY_WHEEL_MAX_SPEED 4 | ||
| 38 | #define MOUSEKEY_WHEEL_TIME_TO_MAX 10 | ||
| 39 | |||
| 40 | #ifndef FORCE_NKRO | ||
| 41 | # define FORCE_NKRO | ||
| 42 | #endif | ||
diff --git a/keyboards/keebio/nyquist/keymaps/winternebs/keymap.c b/keyboards/keebio/nyquist/keymaps/winternebs/keymap.c new file mode 100755 index 000000000..bb1ab6ca4 --- /dev/null +++ b/keyboards/keebio/nyquist/keymaps/winternebs/keymap.c | |||
| @@ -0,0 +1,143 @@ | |||
| 1 | /* Copyright 2020 winterNebs <winternebs@gmail.com> | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #include QMK_KEYBOARD_H | ||
| 17 | |||
| 18 | |||
| 19 | // Each layer gets a name for readability, which is then used in the keymap matrix below. | ||
| 20 | // The underscores don't mean anything - you can have a layer called STUFF or any other name. | ||
| 21 | // Layer names don't all need to be of the same length, obviously, and you can also skip them | ||
| 22 | // entirely and just use numbers. | ||
| 23 | enum layers { | ||
| 24 | _QWERTY, | ||
| 25 | _WORKMAN, | ||
| 26 | _LOWER, | ||
| 27 | _ADJUST, | ||
| 28 | }; | ||
| 29 | |||
| 30 | enum custom_keycodes { | ||
| 31 | QWERTY = SAFE_RANGE, | ||
| 32 | WORKMAN, | ||
| 33 | }; | ||
| 34 | |||
| 35 | #define LOWER MO(_LOWER) | ||
| 36 | #define ADJUST MO(_ADJUST) | ||
| 37 | |||
| 38 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 39 | |||
| 40 | /* Qwerty | ||
| 41 | * ,-----------------------------------------------------------------------------------. | ||
| 42 | * | Esc | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp | | ||
| 43 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 44 | * | Esc | Q | W | E | R | T | Y | U | I | O | P | Del | | ||
| 45 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 46 | * | Tab | A | S | D | F | G | H | J | K | L | ; | " | | ||
| 47 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 48 | * | Shift| Z | X | C | V | B | N | M | , | . | / |Enter | | ||
| 49 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 50 | * | Ctrl | GUI | | Alt |Lower |Space | Bksp |Adjust| | Left | Down |Right | | ||
| 51 | * `-----------------------------------------------------------------------------------' | ||
| 52 | */ | ||
| 53 | [_QWERTY] = LAYOUT( | ||
| 54 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, | ||
| 55 | KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_DEL, | ||
| 56 | KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
| 57 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT , | ||
| 58 | KC_LCTL, KC_LGUI, _______, KC_LALT, LOWER, KC_SPC, KC_BSPC, ADJUST, z, KC_LEFT, KC_DOWN, KC_RGHT | ||
| 59 | ), | ||
| 60 | /* Workman | ||
| 61 | * ,-----------------------------------------------------------------------------------. | ||
| 62 | * | Esc | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp | | ||
| 63 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 64 | * | Esc | Q | D | R | W | B | J | F | U | P | ; | Del | | ||
| 65 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 66 | * | Tab | A | S | H | T | G | Y | N | E | O | I | " | | ||
| 67 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 68 | * | Shift| Z | X | M | C | V | K | L | , | . | / |Enter | | ||
| 69 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 70 | * | Ctrl | GUI | | Alt |Lower |Space | Bksp |Adjust| | Left | Down |Right | | ||
| 71 | * `-----------------------------------------------------------------------------------' | ||
| 72 | */ | ||
| 73 | [_WORKMAN] = LAYOUT( | ||
| 74 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, | ||
| 75 | KC_ESC, KC_Q, KC_D, KC_R, KC_W, KC_B, KC_J, KC_F, KC_U, KC_P, KC_SCLN, KC_DEL, | ||
| 76 | KC_TAB, KC_A, KC_S, KC_H, KC_T, KC_G, KC_Y, KC_N, KC_E, KC_O, KC_I, KC_QUOT, | ||
| 77 | KC_LSFT, KC_Z, KC_X, KC_M, KC_C, KC_V, KC_K, KC_L, KC_COMM, KC_DOT, KC_SLSH, KC_ENT , | ||
| 78 | KC_LCTL, KC_LGUI, _______, KC_LALT, LOWER, KC_SPC, KC_BSPC, ADJUST, _______, KC_LEFT, KC_DOWN, KC_RGHT | ||
| 79 | ), | ||
| 80 | |||
| 81 | /* Lower | ||
| 82 | * ,-----------------------------------------------------------------------------------. | ||
| 83 | * | ` | | | | | | | | | | | | | ||
| 84 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 85 | * | Del | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | | | ||
| 86 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 87 | * | Del | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ | | ||
| 88 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 89 | * | | F7 | F8 | F9 | F10 | F11 | F12 | | |Pg Up | UP |Pg Dn | | ||
| 90 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 91 | * | | |PrScr | | | | | | | | | | ||
| 92 | * `-----------------------------------------------------------------------------------' | ||
| 93 | */ | ||
| 94 | [_LOWER] = LAYOUT( | ||
| 95 | KC_GRV, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 96 | KC_DEL, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______, | ||
| 97 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, | ||
| 98 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, KC_PGUP, KC_UP, KC_PGDN, | ||
| 99 | _______, _______, KC_PSCR, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 100 | ), | ||
| 101 | |||
| 102 | /* Adjust (Lower + Raise) | ||
| 103 | * ,-----------------------------------------------------------------------------------. | ||
| 104 | * | Reset|RGB Tg|RGB Md|Hue Up|Hue Dn| | | | | ScrL | ScrR | | | ||
| 105 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 106 | * |Sat Up|Sat Dn|Val Up|Val Dn|AGnorm|AGswap| Home | M1 | ^ | M2 |ScrUp | | | ||
| 107 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 108 | * | | | |Qwerty|WORKMN| | End | < | v | > |Scrdn | | | ||
| 109 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 110 | * | | | | | | | Left | Down | Up |Right | Vol+ |Pause | | ||
| 111 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 112 | * | NKRO | | | | | | | | Last | Vol- | Next | | ||
| 113 | * `-----------------------------------------------------------------------------------' | ||
| 114 | */ | ||
| 115 | [_ADJUST] = LAYOUT( | ||
| 116 | RESET, RGB_TOG, RGB_MOD, RGB_HUD, RGB_HUI, _______, _______, _______, _______, KC_WH_L, KC_WH_R, _______, | ||
| 117 | RGB_SAD, RGB_SAI, RGB_VAD, RGB_VAI, AG_NORM, AG_SWAP, KC_HOME, KC_BTN1, KC_MS_U, KC_BTN2, KC_WH_U, _______, | ||
| 118 | _______, _______, _______, QWERTY, WORKMAN, _______, KC_END, KC_MS_L, KC_MS_D, KC_MS_R, KC_WH_D, _______, | ||
| 119 | _______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_VOLU, KC_MPLY, | ||
| 120 | MAGIC_TOGGLE_NKRO, _______, _______, _______, _______, _______, _______, _______, _______, KC_MPRV, KC_VOLD, KC_MNXT | ||
| 121 | ) | ||
| 122 | |||
| 123 | |||
| 124 | }; | ||
| 125 | |||
| 126 | |||
| 127 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 128 | switch (keycode) { | ||
| 129 | case QWERTY: | ||
| 130 | if (record->event.pressed) { | ||
| 131 | set_single_persistent_default_layer(_QWERTY); | ||
| 132 | } | ||
| 133 | return false; | ||
| 134 | break; | ||
| 135 | case WORKMAN: | ||
| 136 | if (record->event.pressed) { | ||
| 137 | set_single_persistent_default_layer(_WORKMAN); | ||
| 138 | } | ||
| 139 | return false; | ||
| 140 | break; | ||
| 141 | } | ||
| 142 | return true; | ||
| 143 | } | ||
diff --git a/keyboards/keebio/nyquist/keymaps/winternebs/rules.mk b/keyboards/keebio/nyquist/keymaps/winternebs/rules.mk new file mode 100755 index 000000000..bcb6ddebd --- /dev/null +++ b/keyboards/keebio/nyquist/keymaps/winternebs/rules.mk | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | RGBLIGHT_ENABLE = yes | ||
| 2 | MOUSEKEY_ENABLE = yes | ||
| 3 | NKRO_ENABLE = yes | ||
diff --git a/keyboards/kyria/keymaps/winternebs/config.h b/keyboards/kyria/keymaps/winternebs/config.h new file mode 100755 index 000000000..db14011d1 --- /dev/null +++ b/keyboards/kyria/keymaps/winternebs/config.h | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | /* Copyright 2019 Thomas Baart <thomas@splitkb.com> | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #pragma once | ||
| 17 | |||
| 18 | #define OLED_FONT_H "keyboards/kyria/keymaps/winternebs/glcdfont.c" | ||
| 19 | #define OLED_FONT_END 127 | ||
| 20 | #ifdef OLED_DRIVER_ENABLE | ||
| 21 | #define OLED_DISPLAY_128X64 | ||
| 22 | #endif | ||
| 23 | |||
| 24 | #define FORCE_NKRO | ||
| 25 | #define ENCODER_RESOLUTION 4 | ||
| 26 | |||
| 27 | #define NO_ACTION_MACRO | ||
| 28 | #define NO_ACTION_FUNCTION | ||
| 29 | #define NO_ACTION_ONESHOT | ||
| 30 | #define TAPPING_FORCE_HOLD | ||
| 31 | #define IGNORE_MOD_TAP_INTERRUPT | ||
diff --git a/keyboards/kyria/keymaps/winternebs/glcdfont.c b/keyboards/kyria/keymaps/winternebs/glcdfont.c new file mode 100755 index 000000000..7303c6aff --- /dev/null +++ b/keyboards/kyria/keymaps/winternebs/glcdfont.c | |||
| @@ -0,0 +1,55 @@ | |||
| 1 | #include "progmem.h" | ||
| 2 | |||
| 3 | // Helidox 8x6 font with QMK Firmware Logo | ||
| 4 | // Online editor: http://teripom.x0.com/ | ||
| 5 | |||
| 6 | static const unsigned char font[] PROGMEM = {// 'download (1)', 192x32px | ||
| 7 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3e, 0x5b, 0x4f, 0x5b, 0x3e, 0x00, 0x3e, 0x6b, 0x4f, 0x6b, | ||
| 8 | 0x3e, 0x00, 0x1c, 0x3e, 0x7c, 0x3e, 0x1c, 0x00, 0x18, 0x3c, 0x7e, 0x3c, 0x18, 0x00, 0x1c, 0x57, | ||
| 9 | 0x7d, 0x57, 0x1c, 0x00, 0x1c, 0x5e, 0x7f, 0x5e, 0x1c, 0x00, 0x00, 0x18, 0x3c, 0x18, 0x00, 0x00, | ||
| 10 | 0xff, 0xe7, 0xc3, 0xe7, 0xff, 0x00, 0x00, 0x18, 0x24, 0x18, 0x00, 0x00, 0xff, 0xe7, 0xdb, 0xe7, | ||
| 11 | 0xff, 0x00, 0x30, 0x48, 0x3a, 0x06, 0x0e, 0x00, 0x26, 0x29, 0x79, 0x29, 0x26, 0x00, 0x40, 0x7f, | ||
| 12 | 0x05, 0x05, 0x07, 0x00, 0x40, 0x7f, 0x05, 0x25, 0x3f, 0x00, 0x5a, 0x3c, 0xe7, 0x3c, 0x5a, 0x00, | ||
| 13 | 0x7f, 0x3e, 0x1c, 0x1c, 0x08, 0x00, 0x08, 0x1c, 0x1c, 0x3e, 0x7f, 0x00, 0x14, 0x22, 0x7f, 0x22, | ||
| 14 | 0x14, 0x00, 0x5f, 0x5f, 0x00, 0x5f, 0x5f, 0x00, 0x06, 0x09, 0x7f, 0x01, 0x7f, 0x00, 0x00, 0x66, | ||
| 15 | 0x89, 0x95, 0x6a, 0x00, 0x60, 0x60, 0x60, 0x60, 0x60, 0x00, 0x94, 0xa2, 0xff, 0xa2, 0x94, 0x00, | ||
| 16 | 0x08, 0x04, 0x7e, 0x04, 0x08, 0x00, 0x10, 0x20, 0x7e, 0x20, 0x10, 0x00, 0x08, 0x08, 0x2a, 0x1c, | ||
| 17 | 0x08, 0x00, 0x08, 0x1c, 0x2a, 0x08, 0x08, 0x00, 0x1e, 0x10, 0x10, 0x10, 0x10, 0x00, 0x0c, 0x1e, | ||
| 18 | 0x0c, 0x1e, 0x0c, 0x00, 0x30, 0x38, 0x3e, 0x38, 0x30, 0x00, 0x06, 0x0e, 0x3e, 0x0e, 0x06, 0x00, | ||
| 19 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x5f, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x07, | ||
| 20 | 0x00, 0x00, 0x14, 0x7f, 0x14, 0x7f, 0x14, 0x00, 0x24, 0x2a, 0x7f, 0x2a, 0x12, 0x00, 0x23, 0x13, | ||
| 21 | 0x08, 0x64, 0x62, 0x00, 0x36, 0x49, 0x56, 0x20, 0x50, 0x00, 0x00, 0x08, 0x07, 0x03, 0x00, 0x00, | ||
| 22 | 0x00, 0x1c, 0x22, 0x41, 0x00, 0x00, 0x00, 0x41, 0x22, 0x1c, 0x00, 0x00, 0x2a, 0x1c, 0x7f, 0x1c, | ||
| 23 | 0x2a, 0x00, 0x08, 0x08, 0x3e, 0x08, 0x08, 0x00, 0x00, 0x80, 0x70, 0x30, 0x00, 0x00, 0x08, 0x08, | ||
| 24 | 0x08, 0x08, 0x08, 0x00, 0x00, 0x00, 0x60, 0x60, 0x00, 0x00, 0x20, 0x10, 0x08, 0x04, 0x02, 0x00, | ||
| 25 | 0x3e, 0x51, 0x49, 0x45, 0x3e, 0x00, 0x00, 0x42, 0x7f, 0x40, 0x00, 0x00, 0x72, 0x49, 0x49, 0x49, | ||
| 26 | 0x46, 0x00, 0x21, 0x41, 0x49, 0x4d, 0x33, 0x00, 0x18, 0x14, 0x12, 0x7f, 0x10, 0x00, 0x27, 0x45, | ||
| 27 | 0x45, 0x45, 0x39, 0x00, 0x3c, 0x4a, 0x49, 0x49, 0x31, 0x00, 0x41, 0x21, 0x11, 0x09, 0x07, 0x00, | ||
| 28 | 0x36, 0x49, 0x49, 0x49, 0x36, 0x00, 0x46, 0x49, 0x49, 0x29, 0x1e, 0x00, 0x00, 0x00, 0x14, 0x00, | ||
| 29 | 0x00, 0x00, 0x00, 0x40, 0x34, 0x00, 0x00, 0x00, 0x00, 0x08, 0x14, 0x22, 0x41, 0x00, 0x14, 0x14, | ||
| 30 | 0x14, 0x14, 0x14, 0x00, 0x00, 0x41, 0x22, 0x14, 0x08, 0x00, 0x02, 0x01, 0x59, 0x09, 0x06, 0x00, | ||
| 31 | 0x3e, 0x41, 0x5d, 0x59, 0x4e, 0x00, 0x7c, 0x12, 0x11, 0x12, 0x7c, 0x00, 0x7f, 0x49, 0x49, 0x49, | ||
| 32 | 0x36, 0x00, 0x3e, 0x41, 0x41, 0x41, 0x22, 0x00, 0x7f, 0x41, 0x41, 0x41, 0x3e, 0x00, 0x7f, 0x49, | ||
| 33 | 0x49, 0x49, 0x41, 0x00, 0x7f, 0x09, 0x09, 0x09, 0x01, 0x00, 0x3e, 0x41, 0x41, 0x51, 0x73, 0x00, | ||
| 34 | 0x7f, 0x08, 0x08, 0x08, 0x7f, 0x00, 0x00, 0x41, 0x7f, 0x41, 0x00, 0x00, 0x20, 0x40, 0x41, 0x3f, | ||
| 35 | 0x01, 0x00, 0x7f, 0x08, 0x14, 0x22, 0x41, 0x00, 0x7f, 0x40, 0x40, 0x40, 0x40, 0x00, 0x7f, 0x02, | ||
| 36 | 0x1c, 0x02, 0x7f, 0x00, 0x7f, 0x04, 0x08, 0x10, 0x7f, 0x00, 0x3e, 0x41, 0x41, 0x41, 0x3e, 0x00, | ||
| 37 | 0x7f, 0x09, 0x09, 0x09, 0x06, 0x00, 0x3e, 0x41, 0x51, 0x21, 0x5e, 0x00, 0x7f, 0x09, 0x19, 0x29, | ||
| 38 | 0x46, 0x00, 0x26, 0x49, 0x49, 0x49, 0x32, 0x00, 0x03, 0x01, 0x7f, 0x01, 0x03, 0x00, 0x3f, 0x40, | ||
| 39 | 0x40, 0x40, 0x3f, 0x00, 0x1f, 0x20, 0x40, 0x20, 0x1f, 0x00, 0x3f, 0x40, 0x38, 0x40, 0x3f, 0x00, | ||
| 40 | 0x63, 0x14, 0x08, 0x14, 0x63, 0x00, 0x03, 0x04, 0x78, 0x04, 0x03, 0x00, 0x61, 0x59, 0x49, 0x4d, | ||
| 41 | 0x43, 0x00, 0x00, 0x7f, 0x41, 0x41, 0x41, 0x00, 0x02, 0x04, 0x08, 0x10, 0x20, 0x00, 0x00, 0x41, | ||
| 42 | 0x41, 0x41, 0x7f, 0x00, 0x04, 0x02, 0x01, 0x02, 0x04, 0x00, 0x40, 0x40, 0x40, 0x40, 0x40, 0x00, | ||
| 43 | 0x00, 0x03, 0x07, 0x08, 0x00, 0x00, 0x20, 0x54, 0x54, 0x78, 0x40, 0x00, 0x7f, 0x28, 0x44, 0x44, | ||
| 44 | 0x38, 0x00, 0x38, 0x44, 0x44, 0x44, 0x28, 0x00, 0x38, 0x44, 0x44, 0x28, 0x7f, 0x00, 0x38, 0x54, | ||
| 45 | 0x54, 0x54, 0x18, 0x00, 0x00, 0x08, 0x7e, 0x09, 0x02, 0x00, 0x18, 0xa4, 0xa4, 0x9c, 0x78, 0x00, | ||
| 46 | 0x7f, 0x08, 0x04, 0x04, 0x78, 0x00, 0x00, 0x44, 0x7d, 0x40, 0x00, 0x00, 0x20, 0x40, 0x40, 0x3d, | ||
| 47 | 0x00, 0x00, 0x7f, 0x10, 0x28, 0x44, 0x00, 0x00, 0x00, 0x41, 0x7f, 0x40, 0x00, 0x00, 0x7c, 0x04, | ||
| 48 | 0x78, 0x04, 0x78, 0x00, 0x7c, 0x08, 0x04, 0x04, 0x78, 0x00, 0x38, 0x44, 0x44, 0x44, 0x38, 0x00, | ||
| 49 | 0xfc, 0x18, 0x24, 0x24, 0x18, 0x00, 0x18, 0x24, 0x24, 0x18, 0xfc, 0x00, 0x7c, 0x08, 0x04, 0x04, | ||
| 50 | 0x08, 0x00, 0x48, 0x54, 0x54, 0x54, 0x24, 0x00, 0x04, 0x04, 0x3f, 0x44, 0x24, 0x00, 0x3c, 0x40, | ||
| 51 | 0x40, 0x20, 0x7c, 0x00, 0x1c, 0x20, 0x40, 0x20, 0x1c, 0x00, 0x3c, 0x40, 0x30, 0x40, 0x3c, 0x00, | ||
| 52 | 0x44, 0x28, 0x10, 0x28, 0x44, 0x00, 0x4c, 0x90, 0x90, 0x90, 0x7c, 0x00, 0x44, 0x64, 0x54, 0x4c, | ||
| 53 | 0x44, 0x00, 0x00, 0x08, 0x36, 0x41, 0x00, 0x00, 0x00, 0x00, 0x77, 0x00, 0x00, 0x00, 0x00, 0x41, | ||
| 54 | 0x36, 0x08, 0x00, 0x00, 0x02, 0x01, 0x02, 0x04, 0x02, 0x00, 0x3c, 0x26, 0x23, 0x26, 0x3c, 0x00 | ||
| 55 | }; \ No newline at end of file | ||
diff --git a/keyboards/kyria/keymaps/winternebs/keymap.c b/keyboards/kyria/keymaps/winternebs/keymap.c new file mode 100755 index 000000000..60b3464ab --- /dev/null +++ b/keyboards/kyria/keymaps/winternebs/keymap.c | |||
| @@ -0,0 +1,725 @@ | |||
| 1 | /* Copyright 2019 Thomas Baart <thomas@splitkb.com> | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | #include QMK_KEYBOARD_H | ||
| 17 | |||
| 18 | #ifdef CONSOLE_ENABLE | ||
| 19 | #include <print.h> | ||
| 20 | #endif | ||
| 21 | enum custom_keycodes { | ||
| 22 | QWERTY = SAFE_RANGE, | ||
| 23 | WORKMAN, | ||
| 24 | ADJUST, | ||
| 25 | SBKSP, | ||
| 26 | ENDW | ||
| 27 | }; | ||
| 28 | |||
| 29 | enum layers { | ||
| 30 | _QWERTY = 0, | ||
| 31 | _WORKMAN, | ||
| 32 | _LOWER, | ||
| 33 | _RAISE, | ||
| 34 | _ADJUST | ||
| 35 | }; | ||
| 36 | #define RAISE LT(_RAISE, KC_ENT) | ||
| 37 | #define LOWER MO(_LOWER) | ||
| 38 | #define HOME_A KC_A | ||
| 39 | #define HOME_S KC_S | ||
| 40 | #define HOME_H CTL_T(KC_H) | ||
| 41 | #define HOME_T SFT_T(KC_T) | ||
| 42 | #define HOME_N SFT_T(KC_N) | ||
| 43 | #define HOME_E CTL_T(KC_E) | ||
| 44 | #define HOME_O KC_O | ||
| 45 | #define HOME_I KC_I | ||
| 46 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 47 | /* | ||
| 48 | * Base Layer: QWERTY | ||
| 49 | * | ||
| 50 | * ,-------------------------------------------. ,-------------------------------------------. | ||
| 51 | * | ESC | Q | W | E | R | T | | Y | U | I | O | P | | | ||
| 52 | * |--------+------+------+------+------+------| |------+------+------+------+------+--------| | ||
| 53 | * | TAB | A | S | D | F | G | | H | J | K | L | ; | ' | | ||
| 54 | * |--------+------+------+------+------+------+-------------. ,-------------+------+------+------+------+------+--------| | ||
| 55 | * | CTRL | Z | X | C | V | B | | | | | | N | M | , | . | / | ENTER | | ||
| 56 | * `----------------------+------+------+------+------+------| |------+------+------+------+------+----------------------' | ||
| 57 | * | GUI | ALT | LOWER| Space| | | SHIFT| Bksp | RAISE| | | | ||
| 58 | * `----------------------------------' `----------------------------------' | ||
| 59 | */ | ||
| 60 | [_QWERTY] = LAYOUT( | ||
| 61 | KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, _______, | ||
| 62 | KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
| 63 | KC_LCTL, KC_Z, KC_X, KC_C, KC_V, KC_B, _______, _______, _______, _______, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, | ||
| 64 | KC_LGUI, KC_LALT, LOWER, KC_SPC, _______, KC_LSFT, KC_BSPC, RAISE, _______, _______ | ||
| 65 | ), | ||
| 66 | /* | ||
| 67 | * Workman Layer | ||
| 68 | * | ||
| 69 | * ,-------------------------------------------. ,-------------------------------------------. | ||
| 70 | * | ESC | Q | D | R | W | B | | J | F | U | P | ; | Bksp | | ||
| 71 | * |--------+------+------+------+------+------| |------+------+------+------+------+--------| | ||
| 72 | * | TAB | A | S | H | T | G | | Y | N | E | O | I | ' | | ||
| 73 | * |--------+------+------+------+------+------+-------------. ,-------------+------+------+------+------+------+--------| | ||
| 74 | * | | Z | X | M | C | V | SHIFT| Space| | | ENTER| K | L | , | . | / | | | ||
| 75 | * `----------------------+------+------+------+------+------| |------+------+------+------+------+----------------------' | ||
| 76 | * | GUI | ESC | LOWER| Space| SWAP | | SWAP | Bksp | RAISE| | | | ||
| 77 | * `----------------------------------' `----------------------------------' | ||
| 78 | */ | ||
| 79 | [_WORKMAN] = LAYOUT( | ||
| 80 | KC_ESC, KC_Q, KC_D, KC_R, KC_W, KC_B, KC_J, KC_F, KC_U, KC_P, KC_SCLN, KC_BSPC, | ||
| 81 | KC_TAB, HOME_A, HOME_S, HOME_H, HOME_T, KC_G, KC_Y, HOME_N, HOME_E, HOME_O, HOME_I, KC_QUOT, | ||
| 82 | XXXXXXX, KC_Z, KC_X, KC_M, KC_C, KC_V, KC_LSFT, KC_SPC, SH_MON, KC_ENT, KC_K, KC_L, KC_COMM, KC_DOT, KC_SLSH, XXXXXXX, | ||
| 83 | KC_LGUI, KC_LALT, LOWER, KC_SPC, SH_MON, SH_MON, KC_BSPC, RAISE, XXXXXXX, _______ | ||
| 84 | ), | ||
| 85 | /* | ||
| 86 | * Lower Layer: NUM/symb | ||
| 87 | * | ||
| 88 | * ,-------------------------------------------. ,-------------------------------------------. | ||
| 89 | * | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | | | ||
| 90 | * |--------+------+------+------+------+------| |------+------+------+------+------+--------| | ||
| 91 | * | DEL | $ | + | ( | ) | @ | | | | - | = | _ | * | \ | | ||
| 92 | * |--------+------+------+------+------+------+-------------. ,-------------+------+------+------+------+------+--------| | ||
| 93 | * | | ! | # | { | } | ~ | | | | | | & | [ | ] | % | ^ | | | ||
| 94 | * `----------------------+------+------+------+------+------| |------+------+------+------+------+----------------------' | ||
| 95 | * |prints| | | | | | | | | | | | ||
| 96 | * `----------------------------------' `----------------------------------' | ||
| 97 | */ | ||
| 98 | [_LOWER] = LAYOUT( | ||
| 99 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______, | ||
| 100 | KC_DEL, KC_DLR, KC_PLUS, KC_LPRN, KC_RPRN, KC_AT, KC_PIPE, KC_MINS, KC_EQL, KC_UNDS, KC_ASTR, KC_BSLS, | ||
| 101 | _______, KC_EXLM, KC_HASH, KC_LCBR, KC_RCBR, KC_TILD, _______, _______, _______, _______, KC_AMPR, KC_LBRC, KC_RBRC, KC_PERC, KC_CIRC, _______, | ||
| 102 | KC_PSCR, _______, _______, _______, _______, _______, KC_BSPC, _______, _______, _______ | ||
| 103 | ), | ||
| 104 | /* | ||
| 105 | * Raise Layer: VIM Movement | ||
| 106 | * | ||
| 107 | * ,-------------------------------------------. ,-------------------------------------------. | ||
| 108 | * | | | PgDn | | Word | Back | | Down | | PgUp | | | | | ||
| 109 | * |--------+------+------+------+------+------| |------+------+------+------+------+--------| | ||
| 110 | * | | | | Left | | | | | | End | | | | | ||
| 111 | * |--------+------+------+------+------+------+-------------. ,-------------+------+------+------+------+------+--------| | ||
| 112 | * | | | | | | | | | | | | Up | Right| | | | | | ||
| 113 | * `----------------------+------+------+------+------+------| |------+------+------+------+------+----------------------' | ||
| 114 | * | | | | | | | | | | | | | ||
| 115 | * | | | | | | | | | | | | | ||
| 116 | * `----------------------------------' `----------------------------------' | ||
| 117 | */ | ||
| 118 | [_RAISE] = LAYOUT( | ||
| 119 | _______, _______, KC_PGDN, _______, C(KC_RGHT), C(KC_LEFT), KC_DOWN, _______, KC_PGUP, _______, _______, _______, | ||
| 120 | _______, _______, _______, KC_LEFT, _______, _______, _______, _______, ENDW, _______, _______, _______, | ||
| 121 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_UP, KC_RGHT, _______, _______, _______, _______, | ||
| 122 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 123 | ), | ||
| 124 | /* | ||
| 125 | * Layer template | ||
| 126 | * | ||
| 127 | * ,-------------------------------------------. ,-------------------------------------------. | ||
| 128 | * | F1 | F2 | F3 | F4 | F5 | F6 | | F7 | F8 | F9 | F10 | F11 | F12 | | ||
| 129 | * |--------+------+------+------+------+------| |------+------+------+------+------+--------| | ||
| 130 | * | | | | | | | | | | | | | | | ||
| 131 | * |--------+------+------+------+------+------+-------------. ,-------------+------+------+------+------+------+--------| | ||
| 132 | * | | | | |QWERTY|WRKMAN| | | | | | | | | | | | | ||
| 133 | * `----------------------+------+------+------+------+------| |------+------+------+------+------+----------------------' | ||
| 134 | * | | | | | | | | | | | | | ||
| 135 | * | | | | | | | | | | | | | ||
| 136 | * `----------------------------------' `----------------------------------' | ||
| 137 | */ | ||
| 138 | [_ADJUST] = LAYOUT( | ||
| 139 | KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, | ||
| 140 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 141 | _______, _______, _______, _______, QWERTY, WORKMAN, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 142 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 143 | ), | ||
| 144 | // /* | ||
| 145 | // * Layer template | ||
| 146 | // * | ||
| 147 | // * ,-------------------------------------------. ,-------------------------------------------. | ||
| 148 | // * | | | | | | | | | | | | | | | ||
| 149 | // * |--------+------+------+------+------+------| |------+------+------+------+------+--------| | ||
| 150 | // * | | | | | | | | | | | | | | | ||
| 151 | // * |--------+------+------+------+------+------+-------------. ,-------------+------+------+------+------+------+--------| | ||
| 152 | // * | | | | | | | | | | | | | | | | | | | ||
| 153 | // * `----------------------+------+------+------+------+------| |------+------+------+------+------+----------------------' | ||
| 154 | // * | | | | | | | | | | | | | ||
| 155 | // * | | | | | | | | | | | | | ||
| 156 | // * `----------------------------------' `----------------------------------' | ||
| 157 | // */ | ||
| 158 | // [_LAYERINDEX] = LAYOUT( | ||
| 159 | // _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 160 | // _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 161 | // _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 162 | // _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 163 | // ), | ||
| 164 | }; | ||
| 165 | |||
| 166 | |||
| 167 | layer_state_t layer_state_set_user(layer_state_t state) { | ||
| 168 | return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST); | ||
| 169 | } | ||
| 170 | |||
| 171 | #ifdef ENCODER_ENABLE | ||
| 172 | void encoder_update_user(uint8_t index, bool clockwise) { | ||
| 173 | if (index == 0) { | ||
| 174 | // Volume control | ||
| 175 | if (clockwise) { | ||
| 176 | tap_code(KC_RGHT); | ||
| 177 | } else { | ||
| 178 | tap_code(KC_LEFT); | ||
| 179 | } | ||
| 180 | } | ||
| 181 | else if (index == 1) { | ||
| 182 | // Page up/Page down | ||
| 183 | if (clockwise) { | ||
| 184 | tap_code(KC_DOWN); | ||
| 185 | } else { | ||
| 186 | tap_code(KC_UP); | ||
| 187 | } | ||
| 188 | } | ||
| 189 | } | ||
| 190 | #endif | ||
| 191 | #ifdef OLED_DRIVER_ENABLE | ||
| 192 | bool left = false; | ||
| 193 | bool right = false; | ||
| 194 | bool lastl = false; | ||
| 195 | bool lastr = false; | ||
| 196 | #endif | ||
| 197 | bool bksp = false; | ||
| 198 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 199 | #ifdef CONSOLE_ENABLE | ||
| 200 | uprintf("KL: kc: %u, col: %u, row: %u, pressed: %u, total: %u\n", keycode, record->event.key.col, record->event.key.row, record->event.pressed, record->event.key.col + 10 * record->event.key.row); | ||
| 201 | #endif | ||
| 202 | #ifdef OLED_DRIVER_ENABLE | ||
| 203 | if(record->event.pressed){ | ||
| 204 | uint8_t n = record->event.key.col + 10 * record->event.key.row; | ||
| 205 | if (n<40) { | ||
| 206 | left = true; | ||
| 207 | } | ||
| 208 | else { | ||
| 209 | right = true; | ||
| 210 | } | ||
| 211 | } | ||
| 212 | #endif | ||
| 213 | switch (keycode) { | ||
| 214 | case QWERTY: | ||
| 215 | if (record->event.pressed) { | ||
| 216 | set_single_persistent_default_layer(_QWERTY); | ||
| 217 | } | ||
| 218 | return false; | ||
| 219 | break; | ||
| 220 | case WORKMAN: | ||
| 221 | if (record->event.pressed) { | ||
| 222 | set_single_persistent_default_layer(_WORKMAN); | ||
| 223 | } | ||
| 224 | return false; | ||
| 225 | break; | ||
| 226 | case SBKSP: | ||
| 227 | if (record->event.pressed) { | ||
| 228 | register_code(KC_LSFT); | ||
| 229 | bksp = true; | ||
| 230 | } | ||
| 231 | else { | ||
| 232 | unregister_code(KC_LSFT); | ||
| 233 | if (bksp) { | ||
| 234 | tap_code(KC_BSPC); | ||
| 235 | } | ||
| 236 | } | ||
| 237 | return false; | ||
| 238 | break; | ||
| 239 | case ENDW: | ||
| 240 | if (record->event.pressed) { | ||
| 241 | register_code(KC_LCTL); | ||
| 242 | tap_code(KC_RGHT); | ||
| 243 | unregister_code(KC_LCTL); | ||
| 244 | tap_code(KC_LEFT); | ||
| 245 | } | ||
| 246 | } | ||
| 247 | bksp = false; | ||
| 248 | return true; | ||
| 249 | |||
| 250 | } | ||
| 251 | |||
| 252 | #ifdef OLED_DRIVER_ENABLE | ||
| 253 | oled_rotation_t oled_init_user(oled_rotation_t rotation) { | ||
| 254 | return OLED_ROTATION_180; | ||
| 255 | } | ||
| 256 | |||
| 257 | |||
| 258 | |||
| 259 | char wpm_str[10]; | ||
| 260 | // WPM-responsive animation stuff here | ||
| 261 | #define IDLE_FRAMES 2 | ||
| 262 | #define IDLE_SPEED 10 // below this wpm value your animation will idle | ||
| 263 | |||
| 264 | |||
| 265 | #define TAP_FRAMES 3 | ||
| 266 | |||
| 267 | #define ANIM_FRAME_DURATION 400 // how long each frame lasts in ms | ||
| 268 | // #define SLEEP_TIMER 60000 // should sleep after this period of 0 wpm, needs fixing | ||
| 269 | #define ANIM_SIZE 896 // number of bytes in array, minimize for adequate firmware size, max is 1024 | ||
| 270 | |||
| 271 | uint32_t anim_timer = 0; | ||
| 272 | uint32_t anim_sleep = 0; | ||
| 273 | uint8_t current_idle_frame = 0; | ||
| 274 | // uint8_t current_prep_frame = 0; // uncomment if PREP_FRAMES >1 | ||
| 275 | uint8_t current_tap_frame = 0; | ||
| 276 | // Credit to obosob for initial animation approach. | ||
| 277 | static void render_anim(void) { | ||
| 278 | static const char PROGMEM idle[IDLE_FRAMES][ANIM_SIZE] = { | ||
| 279 | { | ||
| 280 | // 'bongo0', 128x56px | ||
| 281 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 282 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 283 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x40, 0x60, 0x20, 0x30, 0x30, 0x10, | ||
| 284 | 0x18, 0x08, 0x0c, 0x04, 0x04, 0x04, 0x86, 0x82, 0xc2, 0x42, 0x22, 0x12, 0x12, 0x12, 0x12, 0x14, | ||
| 285 | 0x14, 0x14, 0x14, 0x14, 0x18, 0x19, 0x19, 0x11, 0x11, 0x10, 0x10, 0x00, 0x20, 0xf0, 0x2f, 0x24, | ||
| 286 | 0x66, 0xda, 0xd1, 0x11, 0x91, 0x91, 0x11, 0x11, 0x11, 0x12, 0x1e, 0x04, 0x00, 0x00, 0x00, 0x00, | ||
| 287 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 288 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 289 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 290 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 291 | 0x00, 0x00, 0xc0, 0x20, 0x18, 0x04, 0x02, 0x01, 0x80, 0x80, 0x00, 0x40, 0x40, 0xc0, 0x40, 0x30, | ||
| 292 | 0x90, 0x88, 0x44, 0x42, 0x42, 0x41, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x20, 0x20, 0x20, | ||
| 293 | 0x20, 0x20, 0x20, 0x20, 0x20, 0x10, 0x10, 0xf0, 0x88, 0x08, 0x04, 0x02, 0x01, 0x00, 0x00, 0x00, | ||
| 294 | 0x00, 0x00, 0x01, 0x03, 0x06, 0x08, 0x71, 0x81, 0x02, 0x06, 0x04, 0x08, 0x10, 0x20, 0xc0, 0x00, | ||
| 295 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 296 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 297 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 298 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 299 | 0x00, 0x03, 0x82, 0xe2, 0x39, 0x09, 0x05, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x39, | ||
| 300 | 0x1c, 0x00, 0x00, 0x00, 0x40, 0x80, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 301 | 0xe0, 0xf0, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x06, 0x18, 0x20, 0x40, 0x80, 0x00, 0x00, | ||
| 302 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x20, 0x40, 0x80, 0x00, 0x00, 0x00, 0x00, 0x01, | ||
| 303 | 0x06, 0x38, 0xc0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 304 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 305 | 0x00, 0x00, 0x00, 0x00, 0x40, 0x40, 0x40, 0x40, 0x40, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x00, | ||
| 306 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xc0, 0x40, 0x20, 0x30, | ||
| 307 | 0x18, 0x0e, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 308 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 309 | 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, | ||
| 310 | 0x02, 0x04, 0x08, 0x08, 0x10, 0x08, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x0d, 0xf3, 0x06, 0x0c, 0x10, | ||
| 311 | 0x20, 0x20, 0xc1, 0xff, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 312 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 313 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 314 | 0x01, 0x01, 0x01, 0x01, 0x01, 0x02, 0x02, 0xfa, 0x06, 0x06, 0x03, 0x03, 0x02, 0x02, 0x04, 0x18, | ||
| 315 | 0xf0, 0x80, 0xc0, 0x60, 0x20, 0x10, 0x18, 0x0c, 0x08, 0x08, 0x08, 0x08, 0x08, 0x00, 0x10, 0x10, | ||
| 316 | 0x10, 0x10, 0x10, 0x10, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x40, 0x40, 0x40, 0x40, 0x40, | ||
| 317 | 0x40, 0x40, 0x80, 0x40, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 318 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0xf8, 0x00, 0x00, | ||
| 319 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 320 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 321 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 322 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x02, 0x02, 0x02, 0x03, 0x01, 0x01, | ||
| 323 | 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 324 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, | ||
| 325 | 0x8e, 0x03, 0x01, 0x01, 0x01, 0x03, 0x06, 0x9c, 0xf0, 0x80, 0xc0, 0x40, 0x60, 0x20, 0x30, 0x10, | ||
| 326 | 0x08, 0x0d, 0x07, 0x03, 0x03, 0x02, 0x02, 0x02, 0x02, 0x04, 0x04, 0x04, 0x04, 0x07, 0x04, 0x00, | ||
| 327 | 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x10, 0x10, 0x10, 0x10, 0x10, | ||
| 328 | 0x20, 0x20, 0x20, 0x20, 0x20, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 329 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 330 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 331 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 332 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 333 | 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 334 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 335 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 336 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | ||
| 337 | }, | ||
| 338 | { | ||
| 339 | // 'bongo1', 128x56px | ||
| 340 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 341 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 342 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0xc0, 0x40, | ||
| 343 | 0x60, 0x20, 0x20, 0x20, 0x20, 0x00, 0x10, 0x10, 0x10, 0x90, 0x90, 0x90, 0x90, 0x90, 0xa0, 0xa0, | ||
| 344 | 0xa0, 0xa0, 0xa0, 0xc0, 0xc0, 0xc1, 0x80, 0x80, 0x81, 0x81, 0x02, 0x06, 0x84, 0x7c, 0x5f, 0x58, | ||
| 345 | 0x4c, 0x46, 0x42, 0x42, 0x42, 0x43, 0x61, 0x23, 0x36, 0x1c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 346 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 347 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 348 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 349 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x60, 0xa0, 0x20, 0x20, | ||
| 350 | 0x30, 0x10, 0x10, 0x18, 0x08, 0x08, 0x0c, 0x04, 0x06, 0x02, 0x03, 0x01, 0x08, 0x18, 0x18, 0x28, | ||
| 351 | 0x68, 0x44, 0x84, 0x84, 0x86, 0x02, 0x02, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 352 | 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x80, 0x40, 0x40, 0x20, 0x10, 0x09, 0x07, 0x01, 0x01, 0x03, | ||
| 353 | 0x06, 0x06, 0x10, 0x3c, 0x4c, 0xc8, 0x88, 0x08, 0x08, 0x18, 0x10, 0x30, 0x60, 0xc0, 0x80, 0x00, | ||
| 354 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 355 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 356 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 357 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, | ||
| 358 | 0x01, 0x01, 0x81, 0xc1, 0x21, 0x31, 0x11, 0x0d, 0x05, 0x01, 0x03, 0x02, 0x06, 0x0e, 0xc6, 0xe4, | ||
| 359 | 0x04, 0x04, 0x04, 0x06, 0x02, 0x03, 0x01, 0x03, 0x02, 0x02, 0x02, 0x02, 0x01, 0x01, 0x01, 0x01, | ||
| 360 | 0x81, 0x01, 0x01, 0x01, 0x00, 0x00, 0x07, 0x0c, 0x30, 0x40, 0xc0, 0x80, 0x00, 0x00, 0x00, 0x00, | ||
| 361 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x07, 0x1e, 0x30, 0x40, 0x80, 0x00, 0x00, 0x00, 0x01, 0x07, | ||
| 362 | 0x1c, 0x70, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 363 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 364 | 0x00, 0x00, 0x00, 0x00, 0x40, 0x40, 0x40, 0x40, 0x40, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x00, | ||
| 365 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0xc0, 0x40, 0x20, 0x30, | ||
| 366 | 0x18, 0x0e, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, | ||
| 367 | 0x00, 0x00, 0x00, 0x02, 0x04, 0x08, 0x08, 0x08, 0x08, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, | ||
| 368 | 0x0f, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x03, 0x03, 0x02, 0x02, | ||
| 369 | 0x06, 0x04, 0x04, 0x04, 0x08, 0x08, 0x08, 0x0c, 0x04, 0x0c, 0x3c, 0x15, 0xd3, 0x72, 0x10, 0x20, | ||
| 370 | 0x20, 0x20, 0x21, 0x23, 0x26, 0x24, 0x2c, 0x18, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 371 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 372 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 373 | 0x01, 0x01, 0x01, 0x01, 0x01, 0x02, 0x02, 0xfa, 0x06, 0x06, 0x03, 0x03, 0x02, 0x02, 0x04, 0x18, | ||
| 374 | 0xf0, 0x80, 0xc0, 0x60, 0x20, 0x10, 0x18, 0x0c, 0x08, 0x08, 0x08, 0x08, 0x08, 0x00, 0x10, 0x10, | ||
| 375 | 0x10, 0x10, 0x10, 0x10, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x40, 0x40, 0x40, 0x40, 0x40, | ||
| 376 | 0x40, 0x40, 0x80, 0x40, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 377 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0xf8, 0x00, 0x00, | ||
| 378 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 379 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 380 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 381 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x02, 0x02, 0x02, 0x03, 0x01, 0x01, | ||
| 382 | 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 383 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, | ||
| 384 | 0x8e, 0x03, 0x01, 0x01, 0x01, 0x03, 0x06, 0x9c, 0xf0, 0x80, 0xc0, 0x40, 0x60, 0x20, 0x30, 0x10, | ||
| 385 | 0x08, 0x0d, 0x07, 0x03, 0x03, 0x02, 0x02, 0x02, 0x02, 0x04, 0x04, 0x04, 0x04, 0x07, 0x04, 0x00, | ||
| 386 | 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x10, 0x10, 0x10, 0x10, 0x10, | ||
| 387 | 0x20, 0x20, 0x20, 0x20, 0x20, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 388 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 389 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 390 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 391 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 392 | 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 393 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 394 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 395 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | ||
| 396 | } | ||
| 397 | }; | ||
| 398 | static const char PROGMEM prep[][ANIM_SIZE] = { | ||
| 399 | { | ||
| 400 | // 'bongo2', 128x56px | ||
| 401 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 402 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 403 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x40, 0x60, 0x20, 0x30, 0x30, 0x10, | ||
| 404 | 0x18, 0x08, 0x0c, 0x04, 0x04, 0x04, 0x86, 0x82, 0xc2, 0x42, 0x22, 0x12, 0x12, 0x12, 0x12, 0x14, | ||
| 405 | 0x14, 0x14, 0x14, 0x14, 0x18, 0x19, 0x19, 0x11, 0x11, 0x10, 0x10, 0x00, 0x20, 0xf0, 0x2f, 0x24, | ||
| 406 | 0x66, 0xda, 0xd1, 0x11, 0x91, 0x91, 0x11, 0x11, 0x11, 0x12, 0x1e, 0x04, 0x00, 0x00, 0x00, 0x00, | ||
| 407 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 408 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 409 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 410 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 411 | 0x00, 0x00, 0xc0, 0x20, 0x18, 0x04, 0x02, 0x01, 0x80, 0x80, 0x00, 0x40, 0x40, 0xc0, 0x40, 0x30, | ||
| 412 | 0x90, 0x88, 0x44, 0x42, 0x42, 0x41, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x20, 0x20, 0x20, | ||
| 413 | 0x20, 0x20, 0x20, 0x20, 0x20, 0x10, 0x10, 0xf0, 0x88, 0x08, 0x04, 0x02, 0x01, 0x00, 0x00, 0x00, | ||
| 414 | 0x00, 0x00, 0x01, 0x03, 0x06, 0x08, 0x71, 0x81, 0x02, 0x06, 0x04, 0x08, 0x10, 0x20, 0xc0, 0x00, | ||
| 415 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 416 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 417 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 418 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x18, 0x08, 0x0c, 0x04, 0x04, | ||
| 419 | 0x04, 0x07, 0x0a, 0x92, 0xf9, 0xc9, 0x05, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x39, | ||
| 420 | 0x1c, 0x00, 0x00, 0x00, 0x40, 0x80, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 421 | 0xe0, 0xf0, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc1, 0x46, 0x78, 0x20, 0x20, 0x20, 0x20, 0x40, | ||
| 422 | 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x20, 0x40, 0x80, 0x00, 0x00, 0x00, 0x00, 0x01, | ||
| 423 | 0x06, 0x38, 0xc0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 424 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 425 | 0x00, 0x00, 0x00, 0x00, 0x40, 0x40, 0x40, 0x40, 0x40, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x00, | ||
| 426 | 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x1e, 0x64, 0xc4, 0x04, 0x04, | ||
| 427 | 0x00, 0x02, 0x03, 0x01, 0x00, 0x01, 0x03, 0x0c, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 428 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 429 | 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3f, 0xe0, 0x40, 0x40, 0x40, 0x40, 0x40, 0x60, 0x20, | ||
| 430 | 0x30, 0x19, 0x0e, 0x38, 0xcc, 0x08, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x0d, 0xf3, 0x06, 0x0c, 0x10, | ||
| 431 | 0x20, 0x20, 0xc1, 0xff, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 432 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 433 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 434 | 0x01, 0x01, 0x01, 0x01, 0x01, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x04, 0x05, 0x07, 0x0e, | ||
| 435 | 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x08, 0x08, 0x08, 0x08, 0x08, 0x00, 0x10, 0x10, | ||
| 436 | 0x10, 0x10, 0x10, 0x10, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x40, 0x40, 0x40, 0x40, 0x40, | ||
| 437 | 0x40, 0x40, 0x00, 0x80, 0x80, 0x80, 0x80, 0x80, 0x83, 0x87, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 438 | 0x00, 0x00, 0x00, 0x00, 0x01, 0x0e, 0x38, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x07, 0xf8, 0x00, 0x00, | ||
| 439 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 440 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 441 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 442 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 443 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 444 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 445 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, | ||
| 446 | 0x01, 0x01, 0x03, 0x02, 0x02, 0x02, 0x03, 0x03, 0x02, 0x04, 0x04, 0x04, 0x04, 0x07, 0x04, 0x00, | ||
| 447 | 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x10, 0x10, 0x10, 0x10, 0x10, | ||
| 448 | 0x20, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 449 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 450 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 451 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 452 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 453 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 454 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 455 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 456 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | ||
| 457 | |||
| 458 | } | ||
| 459 | }; | ||
| 460 | static const char PROGMEM tap[TAP_FRAMES][ANIM_SIZE] = { | ||
| 461 | { | ||
| 462 | // 'bongo3', 128x56px | ||
| 463 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 464 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 465 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x40, 0x60, 0x20, 0x30, 0x30, 0x10, | ||
| 466 | 0x18, 0x08, 0x0c, 0x04, 0x04, 0x04, 0x86, 0x82, 0xc2, 0x42, 0x22, 0x12, 0x12, 0x12, 0x12, 0x14, | ||
| 467 | 0x14, 0x14, 0x14, 0x14, 0x18, 0x19, 0x19, 0x11, 0x11, 0x10, 0x10, 0x00, 0x20, 0xf0, 0x2f, 0x24, | ||
| 468 | 0x66, 0xda, 0xd1, 0x11, 0x91, 0x91, 0x11, 0x11, 0x11, 0x12, 0x1e, 0x04, 0x00, 0x00, 0x00, 0x00, | ||
| 469 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 470 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 471 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 472 | 0x00, 0x00, 0x80, 0x80, 0x80, 0x80, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 473 | 0x00, 0x00, 0xc0, 0x20, 0x18, 0x04, 0x02, 0x01, 0x80, 0x80, 0x00, 0x40, 0x40, 0xc0, 0x40, 0x30, | ||
| 474 | 0x90, 0x88, 0x44, 0x42, 0x42, 0x41, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x20, 0x20, 0x20, | ||
| 475 | 0x20, 0x20, 0x20, 0x20, 0x20, 0x10, 0x10, 0xf0, 0x88, 0x08, 0x04, 0x02, 0x01, 0x00, 0x00, 0x00, | ||
| 476 | 0x00, 0x00, 0x01, 0x03, 0x06, 0x08, 0x71, 0x81, 0x02, 0x06, 0x04, 0x08, 0x10, 0x20, 0xc0, 0x00, | ||
| 477 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 478 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 479 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 480 | 0x00, 0x00, 0x00, 0x1f, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 481 | 0x00, 0x03, 0x82, 0xe2, 0x39, 0x09, 0x05, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x39, | ||
| 482 | 0x1c, 0x00, 0x00, 0x00, 0x40, 0x80, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 483 | 0xe0, 0xf0, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc1, 0x46, 0x78, 0x20, 0x20, 0x20, 0x20, 0x40, | ||
| 484 | 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x20, 0x40, 0x80, 0x00, 0x00, 0x00, 0x00, 0x01, | ||
| 485 | 0x06, 0x38, 0xc0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 486 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 487 | 0x00, 0x00, 0x00, 0x00, 0x40, 0x40, 0x40, 0x40, 0x40, 0x80, 0x80, 0x80, 0xe0, 0xf8, 0xf8, 0xf0, | ||
| 488 | 0xe0, 0xe0, 0xc0, 0xc0, 0x80, 0x01, 0x03, 0x1f, 0x0f, 0x07, 0x00, 0x80, 0xc0, 0x40, 0x20, 0x30, | ||
| 489 | 0x18, 0x0e, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 490 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 491 | 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3f, 0xe0, 0x40, 0x40, 0x40, 0x40, 0x40, 0x60, 0x20, | ||
| 492 | 0x30, 0x19, 0x0e, 0x38, 0xcc, 0x08, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x0d, 0xf3, 0x06, 0x0c, 0x10, | ||
| 493 | 0x20, 0x20, 0xc1, 0xff, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 494 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 495 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0x7f, 0x3f, 0x3f, 0x3f, | ||
| 496 | 0x1f, 0x1f, 0x0f, 0x07, 0x01, 0x02, 0x02, 0xfa, 0x06, 0x06, 0x03, 0x03, 0x02, 0x02, 0x04, 0x18, | ||
| 497 | 0xf0, 0x80, 0xc0, 0x60, 0x20, 0x10, 0x18, 0x0c, 0x08, 0x08, 0x08, 0x08, 0x08, 0x00, 0x10, 0x10, | ||
| 498 | 0x10, 0x10, 0x10, 0x10, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x40, 0x40, 0x40, 0x40, 0x40, | ||
| 499 | 0x40, 0x40, 0x00, 0x80, 0x80, 0x80, 0x80, 0x80, 0x83, 0x87, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 500 | 0x00, 0x00, 0x00, 0x00, 0x01, 0x0e, 0x38, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x07, 0xf8, 0x00, 0x00, | ||
| 501 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 502 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 503 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 504 | 0x00, 0x00, 0x00, 0x80, 0xe0, 0xf0, 0xf8, 0xf9, 0xe1, 0x81, 0x02, 0x02, 0x02, 0x03, 0x01, 0x01, | ||
| 505 | 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 506 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 507 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, | ||
| 508 | 0x01, 0x01, 0x03, 0x02, 0x02, 0x02, 0x03, 0x03, 0x02, 0x04, 0x04, 0x04, 0x04, 0x07, 0x04, 0x00, | ||
| 509 | 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x10, 0x10, 0x10, 0x10, 0x10, | ||
| 510 | 0x20, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 511 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 512 | 0x08, 0x1c, 0x1f, 0x1f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 513 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 514 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 515 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 516 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 517 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 518 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | ||
| 519 | }, | ||
| 520 | { | ||
| 521 | // 'bongo4', 128x56px | ||
| 522 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 523 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 524 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x40, 0x60, 0x20, 0x30, 0x30, 0x10, | ||
| 525 | 0x18, 0x08, 0x0c, 0x04, 0x04, 0x04, 0x86, 0x82, 0xc2, 0x42, 0x22, 0x12, 0x12, 0x12, 0x12, 0x14, | ||
| 526 | 0x14, 0x14, 0x14, 0x14, 0x18, 0x19, 0x19, 0x11, 0x11, 0x10, 0x10, 0x00, 0x20, 0xf0, 0x2f, 0x24, | ||
| 527 | 0x66, 0xda, 0xd1, 0x11, 0x91, 0x91, 0x11, 0x11, 0x11, 0x12, 0x1e, 0x04, 0x00, 0x00, 0x00, 0x00, | ||
| 528 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 529 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 530 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 531 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 532 | 0x00, 0x00, 0xc0, 0x20, 0x18, 0x04, 0x02, 0x01, 0x80, 0x80, 0x00, 0x40, 0x40, 0xc0, 0x40, 0x30, | ||
| 533 | 0x90, 0x88, 0x44, 0x42, 0x42, 0x41, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x20, 0x20, 0x20, | ||
| 534 | 0x20, 0x20, 0x20, 0x20, 0x20, 0x10, 0x10, 0xf0, 0x88, 0x08, 0x04, 0x02, 0x01, 0x00, 0x00, 0x00, | ||
| 535 | 0x00, 0x00, 0x01, 0x03, 0x06, 0x08, 0x71, 0x81, 0x02, 0x06, 0x04, 0x08, 0x10, 0x20, 0xc0, 0x00, | ||
| 536 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 537 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 538 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 539 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x18, 0x08, 0x0c, 0x04, 0x04, | ||
| 540 | 0x04, 0x07, 0x0a, 0x92, 0xf9, 0xc9, 0x05, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x39, | ||
| 541 | 0x1c, 0x00, 0x00, 0x00, 0x40, 0x80, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 542 | 0xe0, 0xf0, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x06, 0x18, 0x20, 0x40, 0x80, 0x00, 0x00, | ||
| 543 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x20, 0x40, 0x80, 0x00, 0x00, 0x00, 0x00, 0x01, | ||
| 544 | 0x06, 0x38, 0xc0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 545 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 546 | 0x00, 0x00, 0x00, 0x00, 0x40, 0x40, 0x40, 0x40, 0x40, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x00, | ||
| 547 | 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x1e, 0x64, 0xc4, 0x04, 0x04, | ||
| 548 | 0x00, 0x02, 0x03, 0x01, 0x00, 0x01, 0x03, 0x0c, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 549 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 550 | 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, | ||
| 551 | 0x02, 0x04, 0x08, 0x08, 0x10, 0x08, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x0d, 0xf3, 0x06, 0x0c, 0x10, | ||
| 552 | 0x20, 0x20, 0xc1, 0xff, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 553 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 554 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 555 | 0x01, 0x01, 0x01, 0x01, 0x01, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x04, 0x05, 0x07, 0x0e, | ||
| 556 | 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x08, 0x08, 0x08, 0x08, 0x08, 0x00, 0x10, 0x10, | ||
| 557 | 0x10, 0x10, 0x10, 0x10, 0x20, 0xa0, 0xa0, 0x20, 0x20, 0x20, 0x20, 0x40, 0x40, 0x40, 0x40, 0x40, | ||
| 558 | 0x40, 0x40, 0x80, 0x40, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 559 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0xf8, 0x00, 0x00, | ||
| 560 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 561 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 562 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 563 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 564 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 565 | 0x00, 0x00, 0x00, 0x7c, 0x7f, 0x7f, 0x7f, 0x3f, 0x3f, 0x3e, 0x1e, 0x1e, 0x1c, 0x0c, 0x00, 0xf8, | ||
| 566 | 0x8e, 0x03, 0x01, 0x01, 0x01, 0x03, 0x06, 0x9c, 0xf0, 0x80, 0xc0, 0x40, 0x60, 0x20, 0x30, 0x10, | ||
| 567 | 0x08, 0x0d, 0x07, 0x03, 0x03, 0x02, 0x02, 0x02, 0x02, 0x04, 0x04, 0x04, 0x04, 0x07, 0x04, 0x00, | ||
| 568 | 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x10, 0x10, 0x10, 0x10, 0x10, | ||
| 569 | 0x20, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 570 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 571 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 572 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 573 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x30, 0x38, 0x38, 0x78, 0x7c, 0x7e, 0xff, 0xff, 0xff, 0xfc, | ||
| 574 | 0xf1, 0xe1, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x03, 0x07, 0x06, 0x0e, | ||
| 575 | 0x1e, 0x3e, 0x3e, 0x7e, 0x7e, 0x1e, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 576 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 577 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | ||
| 578 | }, | ||
| 579 | { | ||
| 580 | // 'bongo5', 128x56px | ||
| 581 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 582 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 583 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x40, 0x60, 0x20, 0x30, 0x30, 0x10, | ||
| 584 | 0x18, 0x08, 0x0c, 0x04, 0x04, 0x04, 0x86, 0x82, 0xc2, 0x42, 0x22, 0x12, 0x12, 0x12, 0x12, 0x14, | ||
| 585 | 0x14, 0x14, 0x14, 0x14, 0x18, 0x19, 0x19, 0x11, 0x11, 0x10, 0x10, 0x00, 0x20, 0xf0, 0x2f, 0x24, | ||
| 586 | 0x66, 0xda, 0xd1, 0x11, 0x91, 0x91, 0x11, 0x11, 0x11, 0x12, 0x1e, 0x04, 0x00, 0x00, 0x00, 0x00, | ||
| 587 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 588 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 589 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 590 | 0x00, 0x00, 0x80, 0x80, 0x80, 0x80, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 591 | 0x00, 0x00, 0xc0, 0x20, 0x18, 0x04, 0x02, 0x01, 0x80, 0x80, 0x00, 0x40, 0x40, 0xc0, 0x40, 0x30, | ||
| 592 | 0x90, 0x88, 0x44, 0x42, 0x42, 0x41, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x20, 0x20, 0x20, | ||
| 593 | 0x20, 0x20, 0x20, 0x20, 0x20, 0x10, 0x10, 0xf0, 0x88, 0x08, 0x04, 0x02, 0x01, 0x00, 0x00, 0x00, | ||
| 594 | 0x00, 0x00, 0x01, 0x03, 0x06, 0x08, 0x71, 0x81, 0x02, 0x06, 0x04, 0x08, 0x10, 0x20, 0xc0, 0x00, | ||
| 595 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 596 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 597 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 598 | 0x00, 0x00, 0x00, 0x1f, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 599 | 0x00, 0x03, 0x82, 0xe2, 0x39, 0x09, 0x05, 0x03, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x39, | ||
| 600 | 0x1c, 0x00, 0x00, 0x00, 0x40, 0x80, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 601 | 0xe0, 0xf0, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x06, 0x18, 0x20, 0x40, 0x80, 0x00, 0x00, | ||
| 602 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x20, 0x40, 0x80, 0x00, 0x00, 0x00, 0x00, 0x01, | ||
| 603 | 0x06, 0x38, 0xc0, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 604 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 605 | 0x00, 0x00, 0x00, 0x00, 0x40, 0x40, 0x40, 0x40, 0x40, 0x80, 0x80, 0x80, 0xe0, 0xf8, 0xf8, 0xf0, | ||
| 606 | 0xe0, 0xe0, 0xc0, 0xc0, 0x80, 0x01, 0x03, 0x1f, 0x0f, 0x07, 0x00, 0x80, 0xc0, 0x40, 0x20, 0x30, | ||
| 607 | 0x18, 0x0e, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 608 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 609 | 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x02, | ||
| 610 | 0x02, 0x04, 0x08, 0x08, 0x10, 0x08, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x0d, 0xf3, 0x06, 0x0c, 0x10, | ||
| 611 | 0x20, 0x20, 0xc1, 0xff, 0x3c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 612 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 613 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7f, 0x7f, 0x3f, 0x3f, 0x3f, | ||
| 614 | 0x1f, 0x1f, 0x0f, 0x07, 0x01, 0x02, 0x02, 0xfa, 0x06, 0x06, 0x03, 0x03, 0x02, 0x02, 0x04, 0x18, | ||
| 615 | 0xf0, 0x80, 0xc0, 0x60, 0x20, 0x10, 0x18, 0x0c, 0x08, 0x08, 0x08, 0x08, 0x08, 0x00, 0x10, 0x10, | ||
| 616 | 0x10, 0x10, 0x10, 0x10, 0x20, 0xa0, 0xa0, 0x20, 0x20, 0x20, 0x20, 0x40, 0x40, 0x40, 0x40, 0x40, | ||
| 617 | 0x40, 0x40, 0x80, 0x40, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 618 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0xf8, 0x00, 0x00, | ||
| 619 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 620 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 621 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 622 | 0x00, 0x00, 0x00, 0x80, 0xe0, 0xf0, 0xf8, 0xf9, 0xe1, 0x81, 0x02, 0x02, 0x02, 0x03, 0x01, 0x01, | ||
| 623 | 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 624 | 0x00, 0x00, 0x00, 0x7c, 0x7f, 0x7f, 0x7f, 0x3f, 0x3f, 0x3e, 0x1e, 0x1e, 0x1c, 0x0c, 0x00, 0xf8, | ||
| 625 | 0x8e, 0x03, 0x01, 0x01, 0x01, 0x03, 0x06, 0x9c, 0xf0, 0x80, 0xc0, 0x40, 0x60, 0x20, 0x30, 0x10, | ||
| 626 | 0x08, 0x0d, 0x07, 0x03, 0x03, 0x02, 0x02, 0x02, 0x02, 0x04, 0x04, 0x04, 0x04, 0x07, 0x04, 0x00, | ||
| 627 | 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x10, 0x10, 0x10, 0x10, 0x10, | ||
| 628 | 0x20, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 629 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 630 | 0x08, 0x1c, 0x1f, 0x1f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x3f, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 631 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 632 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x30, 0x38, 0x38, 0x78, 0x7c, 0x7e, 0xff, 0xff, 0xff, 0xfc, | ||
| 633 | 0xf1, 0xe1, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x03, 0x07, 0x06, 0x0e, | ||
| 634 | 0x1e, 0x3e, 0x3e, 0x7e, 0x7e, 0x1e, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 635 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
| 636 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 | ||
| 637 | } | ||
| 638 | }; | ||
| 639 | |||
| 640 | //assumes 1 frame prep stage | ||
| 641 | void animation_phase(void) { | ||
| 642 | if(get_current_wpm() <= IDLE_SPEED){ | ||
| 643 | current_idle_frame = (current_idle_frame + 1) % IDLE_FRAMES; | ||
| 644 | oled_write_raw_P(idle[abs((IDLE_FRAMES-1)-current_idle_frame)], ANIM_SIZE); | ||
| 645 | } | ||
| 646 | else { | ||
| 647 | // if is true 2 frames in a row make it false; | ||
| 648 | if(left && !lastl && right && !lastr) { | ||
| 649 | oled_write_raw_P(tap[2], ANIM_SIZE); | ||
| 650 | } | ||
| 651 | else if (left && !lastl) { | ||
| 652 | oled_write_raw_P(tap[0], ANIM_SIZE); | ||
| 653 | } | ||
| 654 | else if (right && !lastr) { | ||
| 655 | oled_write_raw_P(tap[1], ANIM_SIZE); | ||
| 656 | } | ||
| 657 | else { | ||
| 658 | oled_write_raw_P(prep[0], ANIM_SIZE); | ||
| 659 | left = false; | ||
| 660 | right = false; | ||
| 661 | } | ||
| 662 | lastl = left; | ||
| 663 | lastr = right; | ||
| 664 | left = false; | ||
| 665 | right = false; | ||
| 666 | } | ||
| 667 | } | ||
| 668 | if(get_current_wpm() != 000) { | ||
| 669 | oled_on(); // not essential but turns on animation OLED with any alpha keypress | ||
| 670 | if(timer_elapsed32(anim_timer) > ANIM_FRAME_DURATION) { | ||
| 671 | anim_timer = timer_read32(); | ||
| 672 | animation_phase(); | ||
| 673 | } | ||
| 674 | anim_sleep = timer_read32(); | ||
| 675 | } else { | ||
| 676 | if(timer_elapsed32(anim_sleep) > OLED_TIMEOUT) { | ||
| 677 | oled_off(); | ||
| 678 | } else { | ||
| 679 | if(timer_elapsed32(anim_timer) > ANIM_FRAME_DURATION) { | ||
| 680 | anim_timer = timer_read32(); | ||
| 681 | animation_phase(); | ||
| 682 | } | ||
| 683 | } | ||
| 684 | } | ||
| 685 | } | ||
| 686 | bool wpm_keycode_user(uint16_t keycode) { | ||
| 687 | return true; | ||
| 688 | } | ||
| 689 | static void render_logo(void) { | ||
| 690 | oled_set_cursor(0,0); | ||
| 691 | oled_write_P(PSTR(" play asc "), false); | ||
| 692 | oled_set_cursor(3,3); | ||
| 693 | oled_write_P(PSTR(" play asc "), false); | ||
| 694 | oled_set_cursor(6,6); | ||
| 695 | oled_write_P(PSTR(" play asc "), false); | ||
| 696 | } | ||
| 697 | void oled_task_user(void) { | ||
| 698 | if (is_keyboard_master()) { | ||
| 699 | render_anim(); | ||
| 700 | oled_set_cursor(0,7); | ||
| 701 | sprintf(wpm_str, "APM: %03d ", get_current_wpm()); | ||
| 702 | oled_write(wpm_str, false); | ||
| 703 | switch (get_highest_layer(layer_state)) { | ||
| 704 | case _QWERTY: | ||
| 705 | oled_write_ln_P(PSTR("base"), false); | ||
| 706 | break; | ||
| 707 | case _LOWER: | ||
| 708 | oled_write_ln_P(PSTR("LOWER"), false); | ||
| 709 | break; | ||
| 710 | case _RAISE: | ||
| 711 | oled_write_ln_P(PSTR("RAISE"), false); | ||
| 712 | break; | ||
| 713 | case _ADJUST: | ||
| 714 | oled_write_ln_P(PSTR("ADJUST"), false); | ||
| 715 | break; | ||
| 716 | default: | ||
| 717 | oled_write_ln_P(PSTR("Undefined"), false); | ||
| 718 | } | ||
| 719 | } else { | ||
| 720 | render_logo(); | ||
| 721 | oled_scroll_left(); | ||
| 722 | |||
| 723 | } | ||
| 724 | } | ||
| 725 | #endif | ||
diff --git a/keyboards/kyria/keymaps/winternebs/rules.mk b/keyboards/kyria/keymaps/winternebs/rules.mk new file mode 100755 index 000000000..5831e23cb --- /dev/null +++ b/keyboards/kyria/keymaps/winternebs/rules.mk | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | OLED_DRIVER_ENABLE = yes # Enables the use of OLED displays | ||
| 2 | ENCODER_ENABLE = yes # Enables the use of one or more | ||
| 3 | NKRO_ENABLE = yes | ||
| 4 | WPM_ENABLE = yes | ||
| 5 | CONSOLE_ENABLE = no # Console for debug | ||
| 6 | AUDIO_ENABLE = no # Audio output | ||
| 7 | SPACE_CADET_ENABLE = no | ||
| 8 | EXTRAKEY_ENABLE = no | ||
| 9 | MOUSEKEY_ENABLE = no | ||
| 10 | BOOTMAGIC_ENABLE = no | ||
| 11 | SWAP_HANDS_ENABLE = yes | ||
| 12 | LTO_ENABLE = yes | ||
diff --git a/keyboards/planck/keymaps/winternebs/config.h b/keyboards/planck/keymaps/winternebs/config.h new file mode 100755 index 000000000..eec8a9376 --- /dev/null +++ b/keyboards/planck/keymaps/winternebs/config.h | |||
| @@ -0,0 +1,61 @@ | |||
| 1 | /* Copyright 2020 winterNebs <winternebs@gmail.com> | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | |||
| 17 | #pragma once | ||
| 18 | /* | ||
| 19 | #ifdef AUDIO_ENABLE | ||
| 20 | #define STARTUP_SONG SONG(PLANCK_SOUND) | ||
| 21 | // #define STARTUP_SONG SONG(NO_SOUND) | ||
| 22 | |||
| 23 | #define DEFAULT_LAYER_SONGS { SONG(QWERTY_SOUND), \ | ||
| 24 | SONG(COLEMAK_SOUND), \ | ||
| 25 | SONG(DVORAK_SOUND) \ | ||
| 26 | } | ||
| 27 | #endif | ||
| 28 | */ | ||
| 29 | /* | ||
| 30 | * MIDI options | ||
| 31 | */ | ||
| 32 | |||
| 33 | /* Prevent use of disabled MIDI features in the keymap */ | ||
| 34 | //#define MIDI_ENABLE_STRICT 1 | ||
| 35 | |||
| 36 | /* enable basic MIDI features: | ||
| 37 | - MIDI notes can be sent when in Music mode is on | ||
| 38 | */ | ||
| 39 | |||
| 40 | //#define MIDI_BASIC | ||
| 41 | |||
| 42 | /* enable advanced MIDI features: | ||
| 43 | - MIDI notes can be added to the keymap | ||
| 44 | - Octave shift and transpose | ||
| 45 | - Virtual sustain, portamento, and modulation wheel | ||
| 46 | - etc. | ||
| 47 | */ | ||
| 48 | //#define MIDI_ADVANCED | ||
| 49 | |||
| 50 | /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ | ||
| 51 | //#define MIDI_TONE_KEYCODE_OCTAVES 2 | ||
| 52 | |||
| 53 | // Most tactile encoders have detents every 4 stages | ||
| 54 | //#define ENCODER_RESOLUTION 4 | ||
| 55 | |||
| 56 | //Mouse stuff | ||
| 57 | #define MOUSEKEY_DELAY 60 | ||
| 58 | #define MOUSEKEY_INTERVAL 8 | ||
| 59 | #define MOUSEKEY_MAX_SPEED 3 | ||
| 60 | #define MOUSEKEY_TIME_TO_MAX 0 | ||
| 61 | #define FORCE_NKRO | ||
diff --git a/keyboards/planck/keymaps/winternebs/keymap.c b/keyboards/planck/keymaps/winternebs/keymap.c new file mode 100755 index 000000000..259603faf --- /dev/null +++ b/keyboards/planck/keymaps/winternebs/keymap.c | |||
| @@ -0,0 +1,162 @@ | |||
| 1 | /* Copyright 2015-2017 Jack Humbert | ||
| 2 | * | ||
| 3 | * This program is free software: you can redistribute it and/or modify | ||
| 4 | * it under the terms of the GNU General Public License as published by | ||
| 5 | * the Free Software Foundation, either version 2 of the License, or | ||
| 6 | * (at your option) any later version. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | * You should have received a copy of the GNU General Public License | ||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 15 | */ | ||
| 16 | |||
| 17 | #include QMK_KEYBOARD_H | ||
| 18 | |||
| 19 | |||
| 20 | enum planck_layers { | ||
| 21 | _QWERTY, | ||
| 22 | _WORKMAN, | ||
| 23 | _LOWER, | ||
| 24 | _ADJUST, | ||
| 25 | }; | ||
| 26 | |||
| 27 | enum planck_keycodes { | ||
| 28 | QWERTY = SAFE_RANGE, | ||
| 29 | WORKMAN, | ||
| 30 | LOWER, | ||
| 31 | }; | ||
| 32 | |||
| 33 | #define ADJUST MO(_ADJUST) | ||
| 34 | //#define LOWER MO(_LOWER) | ||
| 35 | |||
| 36 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 37 | |||
| 38 | /* Qwerty | ||
| 39 | * ,-----------------------------------------------------------------------------------. | ||
| 40 | * | Esc | Q | W | E | R | T | Y | U | I | O | P | Bksp | | ||
| 41 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 42 | * | Tab | A | S | D | F | G | H | J | K | L | ; | " | | ||
| 43 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 44 | * | Shift| Z | X | C | V | B | N | M | , | . | / |Enter | | ||
| 45 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 46 | * | Ctrl | GUI | | Alt |Lower |Space |Space |Adjust| | Left | Down |Right | | ||
| 47 | * `-----------------------------------------------------------------------------------' | ||
| 48 | */ | ||
| 49 | [_QWERTY] = LAYOUT_planck_grid( | ||
| 50 | KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | ||
| 51 | KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
| 52 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT , | ||
| 53 | KC_LCTL, KC_LGUI, _______, KC_LALT, LOWER, KC_SPC, KC_SPC, ADJUST, _______, KC_LEFT, KC_DOWN, KC_RGHT | ||
| 54 | ), | ||
| 55 | /* Workman | ||
| 56 | * ,-----------------------------------------------------------------------------------. | ||
| 57 | * | Esc | Q | D | R | W | B | J | F | U | P | ; | Bksp | | ||
| 58 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 59 | * | Tab | A | S | H | T | G | Y | N | E | O | I | " | | ||
| 60 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 61 | * | Shift| Z | X | M | C | V | K | L | , | . | / |Enter | | ||
| 62 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 63 | * | Ctrl | GUI | | Alt |Lower |Space | Bksp |Adjust| | Left | Down |Right | | ||
| 64 | * `-----------------------------------------------------------------------------------' | ||
| 65 | */ | ||
| 66 | [_WORKMAN] = LAYOUT_planck_grid( | ||
| 67 | KC_ESC, KC_Q, KC_D, KC_R, KC_W, KC_B, KC_J, KC_F, KC_U, KC_P, KC_SCLN, KC_BSPC, | ||
| 68 | KC_TAB, KC_A, KC_S, KC_H, KC_T, KC_G, KC_Y, KC_N, KC_E, KC_O, KC_I, KC_QUOT, | ||
| 69 | KC_LSFT, KC_Z, KC_X, KC_M, KC_C, KC_V, KC_K, KC_L, KC_COMM, KC_DOT, KC_SLSH, KC_ENT , | ||
| 70 | KC_LCTL, KC_LGUI, _______, KC_LALT, LOWER, KC_SPC, KC_BSPC, ADJUST, _______, KC_LEFT, KC_DOWN, KC_RGHT | ||
| 71 | ), | ||
| 72 | |||
| 73 | /* Lower | ||
| 74 | * ,-----------------------------------------------------------------------------------. | ||
| 75 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | | | ||
| 76 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 77 | * | Del | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ | | ||
| 78 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 79 | * | | F7 | F8 | F9 | F10 | F11 | F12 | | |Pg Up | UP |Pg Dn | | ||
| 80 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 81 | * | | |PrScr | | | | | | | | | | ||
| 82 | * `-----------------------------------------------------------------------------------' | ||
| 83 | */ | ||
| 84 | [_LOWER] = LAYOUT_planck_grid( | ||
| 85 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______ , | ||
| 86 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, | ||
| 87 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, KC_PGUP, KC_UP, KC_PGDN, | ||
| 88 | _______, _______, KC_PSCR, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 89 | ), | ||
| 90 | |||
| 91 | /* Adjust (Lower + Raise) | ||
| 92 | * ,----------------------------------------------------------------------------------- | ||
| 93 | * |RESET |DEBUG| |Aud on|Audoff| | | | | | |Reset | | ||
| 94 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 95 | * | | | |QWERTY|WORKMAN| | | Help | | | | | | ||
| 96 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 97 | * | | | | | | | | | Home | End | VOL+ | Play | | ||
| 98 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 99 | * | NKRO | | | | | | | | Prev | VOL- | Next | | ||
| 100 | * `-----------------------------------------------------------------------------------' | ||
| 101 | */ | ||
| 102 | [_ADJUST] = LAYOUT_planck_grid( | ||
| 103 | RESET, DEBUG, _______, _______, AU_ON, AU_OFF, _______, _______, _______, _______, _______, _______ , | ||
| 104 | _______, _______, _______, QWERTY, WORKMAN , _______, _______, _______, _______, _______, _______, _______, | ||
| 105 | _______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_END, KC_VOLU, KC_MPLY, | ||
| 106 | MAGIC_TOGGLE_NKRO, _______, _______, _______, _______, _______, _______, _______, _______, KC_MPRV, KC_VOLD, KC_MNXT | ||
| 107 | ) | ||
| 108 | }; | ||
| 109 | |||
| 110 | |||
| 111 | |||
| 112 | |||
| 113 | bool held[7][6] = {{false}}; | ||
| 114 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 115 | if(record->event.key.row != 3 && record->event.key.row != 7 ){ | ||
| 116 | held[record->event.key.row][record->event.key.col] = record->event.pressed; | ||
| 117 | } | ||
| 118 | switch (keycode) { | ||
| 119 | case QWERTY: | ||
| 120 | if (record->event.pressed) { | ||
| 121 | set_single_persistent_default_layer(_QWERTY); | ||
| 122 | } | ||
| 123 | return false; | ||
| 124 | break; | ||
| 125 | case WORKMAN: | ||
| 126 | if (record->event.pressed) { | ||
| 127 | set_single_persistent_default_layer(_WORKMAN); | ||
| 128 | } | ||
| 129 | return false; | ||
| 130 | break; | ||
| 131 | case LOWER: | ||
| 132 | if(record->event.pressed){ | ||
| 133 | print("registered\n"); | ||
| 134 | for(int i = 0; i < 7; i++){ | ||
| 135 | for(int j = 0; j < 6; j++){ | ||
| 136 | if(held[i][j]){ | ||
| 137 | tap_code(pgm_read_word(&keymaps[_LOWER][i][j])); | ||
| 138 | } | ||
| 139 | } | ||
| 140 | } | ||
| 141 | layer_on(_LOWER); | ||
| 142 | return false; | ||
| 143 | } | ||
| 144 | |||
| 145 | layer_off(_LOWER); | ||
| 146 | return false; | ||
| 147 | break; | ||
| 148 | } | ||
| 149 | return true; | ||
| 150 | } | ||
| 151 | |||
| 152 | void dip_update(uint8_t index, bool active) { | ||
| 153 | switch (index) { | ||
| 154 | case 0: | ||
| 155 | if (active) { | ||
| 156 | layer_on(_ADJUST); | ||
| 157 | } else { | ||
| 158 | layer_off(_ADJUST); | ||
| 159 | } | ||
| 160 | break; | ||
| 161 | } | ||
| 162 | } | ||
diff --git a/keyboards/planck/keymaps/winternebs/readme.md b/keyboards/planck/keymaps/winternebs/readme.md new file mode 100755 index 000000000..d2040854c --- /dev/null +++ b/keyboards/planck/keymaps/winternebs/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # winterNebs' Planck keymap | |||
diff --git a/keyboards/planck/keymaps/winternebs/rules.mk b/keyboards/planck/keymaps/winternebs/rules.mk new file mode 100755 index 000000000..dcf16bef3 --- /dev/null +++ b/keyboards/planck/keymaps/winternebs/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| SRC += muse.c | |||
