diff options
author | Eddie Ehlin <eddiex@eddiex.se> | 2023-05-02 22:12:11 +0200 |
---|---|---|
committer | Eddie Ehlin <eddiex@eddiex.se> | 2023-05-02 22:12:11 +0200 |
commit | e3fda5c152d7a0f68c56ef13b5d3f69a86cd5935 (patch) | |
tree | 82a13f78839a9d5c7c7b602f9cbbade2b75138d2 | |
parent | a5e8be0c76128c734142e15ef12d261d2ebd77b8 (diff) | |
download | planck-keyboard-master.tar.gz planck-keyboard-master.zip |
-rw-r--r-- | compiled-keymaps/checksums.md | 1 | ||||
-rwxr-xr-x | compiled-keymaps/planck_rev6_drop_0xedd1e-20230502.bin | bin | 0 -> 53544 bytes | |||
-rw-r--r-- | keymap/0xedd1e/keymap.c | 46 |
3 files changed, 39 insertions, 8 deletions
diff --git a/compiled-keymaps/checksums.md b/compiled-keymaps/checksums.md index f23d3c2..83a581c 100644 --- a/compiled-keymaps/checksums.md +++ b/compiled-keymaps/checksums.md @@ -6,3 +6,4 @@ SHA256sums: ebe204911bb2c3503ff10d30fa7980a04bfa2d59eb9aa67cff772e1f33365a6c planck_rev6_0xedd1e-20210125.bin 66f8107875ffdab38806b1793e5c30e3f7768608813ff9bcc0cc6f04e2411c59 planck_rev6_0xedd1e-20210301.bin 44a0aad45fa687e21c79b31c1c603abfed06a27bb665386bffff27e4abc9537d planck_rev6_0xedd1e-20210816.bin +d89e5bcbebe520a12ab318af6c3c9c78505d5131c97069536dfa3ba6eb2fd6aa planck_rev6_drop_0xedd1e-20230502.bin diff --git a/compiled-keymaps/planck_rev6_drop_0xedd1e-20230502.bin b/compiled-keymaps/planck_rev6_drop_0xedd1e-20230502.bin Binary files differnew file mode 100755 index 0000000..1fbf1de --- /dev/null +++ b/compiled-keymaps/planck_rev6_drop_0xedd1e-20230502.bin diff --git a/keymap/0xedd1e/keymap.c b/keymap/0xedd1e/keymap.c index ddbbcf2..3396f58 100644 --- a/keymap/0xedd1e/keymap.c +++ b/keymap/0xedd1e/keymap.c @@ -16,11 +16,15 @@ #include QMK_KEYBOARD_H #include "keymap_swedish.h" + +#ifdef AUDIO_ENABLE #include "muse.h" +#endif enum planck_layers { _QWERTY, + _GAMING, _LOWER, _RAISE, _ADJUST @@ -28,6 +32,7 @@ enum planck_layers { enum planck_keycodes { QWERTY = SAFE_RANGE, + GAMING, BACKLIT, EXT_PLV }; @@ -55,6 +60,24 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { KC_LCTL, KC_LALT, KC_LGUI, KC_ALGR, RAISE, LOWER, KC_SPC, KC_BSPC, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT ), +/* Gaming + * ,-----------------------------------------------------------------------------------. + * | ~ | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Esc | + * |------+------+------+------+------+------+------+------+------+------+------+------| + * | Tab | Q | W | E | R | | | | | | | | + * |------+------+------+------+------+------+------+------+------+------+------+------| + * |Shift | A | S | D | | | | | | | |Enter | + * |------+------+------+------+------+------+------+------+------+------+------+------| + * | Ctrl | | | | | | Spc | Spc | | | | | + * `-----------------------------------------------------------------------------------' + */ +[_GAMING] = LAYOUT_planck_grid( + KC_TILD, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_ESC, + KC_TAB, KC_Q, KC_W, KC_E, _______, _______, _______, _______, _______, _______, _______, _______, + KC_LSFT, KC_A, KC_S, KC_D, _______, _______, _______, _______, _______, _______, _______, KC_ENT, + KC_LCTL, _______, _______, _______, _______, _______, KC_SPC, KC_SPC, _______, _______, _______, KC_KP_SLASH +), + /* Lower * ,-----------------------------------------------------------------------------------. * | | ! | " | # | ยค | % | & | / | ( | ) | = | ` | @@ -73,7 +96,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { _______, _______, _______, _______, _______, _______, _______, KC_DEL, KC_HOME, KC_PGDN, KC_PGUP, KC_END ), - /* Raise * ,-----------------------------------------------------------------------------------. * | | F1 | F2 | F3 | F4 | | | = | 7 | 8 | 9 | + | @@ -89,7 +111,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { _______, KC_F1, KC_F2, KC_F3, KC_F4, _______, _______, KC_PEQL, KC_7, KC_8, KC_9, KC_KP_PLUS, _______, KC_F5, KC_F6, KC_F7, KC_F8, _______, _______, _______, KC_4, KC_5, KC_6, KC_KP_MINUS, _______, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, KC_1, KC_2, KC_3, KC_KP_ASTERISK, - _______, _______, _______, _______, _______, _______, _______, _______, KC_0, KC_PCMM, KC_PDOT, KC_KP_SLASH + _______, _______, _______, _______, _______, _______, _______, _______, KC_0, KC_PCMM, KC_PDOT, KC_KP_SLASH ), /* Adjust (Lower + Raise) @@ -97,17 +119,17 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { * ,-----------------------------------------------------------------------------------. * | | Reset|Debug | RGB |RGBMOD| HUE+ | HUE- | SAT+ | SAT- |BRGTH+|BRGTH-| Del | * |------+------+------+------+------+------+------+------+------+------+------+------| - * | | |MUSmod|Aud on|Audoff|AGnorm|AGswap|Qwerty| | | | | + * | | |MUSmod|Aud on|Audoff|AGnorm|AGswap|Qwerty|Gaming| | |Qwerty| * |------+------+------+------+------+------+------+------+------+------+------+------| - * | |Voice-|Voice+|Mus on|Musoff|MIDIon|MIDIof|TermOn|TermOf| | | | + * | |Voice-|Voice+|Mus on|Musoff|MIDIon|MIDIof| | | | |Gaming| * |------+------+------+------+------+------+------+------+------+------+------+------| * | | | | | | | | | | | | * `-----------------------------------------------------------------------------------' */ [_ADJUST] = LAYOUT_planck_grid( - _______, RESET, DEBUG, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_DEL , - _______, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, _______, _______, _______, _______, - _______, MUV_DE, MUV_IN, MU_ON, MU_OFF, MI_ON, MI_OFF, TERM_ON, TERM_OFF, _______, _______, _______, + _______, QK_BOOT, DB_TOGG, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_DEL , + _______, _______, MU_NEXT, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, GAMING, _______, _______, QWERTY, + _______, AU_PREV, AU_NEXT, MU_ON, MU_OFF, MI_ON, MI_OFF, _______, _______, _______, _______, GAMING, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ ) @@ -131,6 +153,13 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { } return false; break; + case GAMING: + if (record->event.pressed) { + print("Base layer set to: GAMING\n"); + set_single_persistent_default_layer(_GAMING); + } + return false; + break; case BACKLIT: if (record->event.pressed) { register_code(KC_RSFT); @@ -192,7 +221,7 @@ bool encoder_update(bool clockwise) { return true; } -void dip_switch_update_user(uint8_t index, bool active) { +bool dip_switch_update_user(uint8_t index, bool active) { switch (index) { case 0: { #ifdef AUDIO_ENABLE @@ -221,6 +250,7 @@ void dip_switch_update_user(uint8_t index, bool active) { muse_mode = false; } } + return true; } void matrix_scan_user(void) { |