diff options
author | Adam Lickel <adam@lickel.com> | 2022-12-10 12:46:24 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-10 12:46:24 -0800 |
commit | 143b7a3c3dc3bb3474222119054a5f1979832862 (patch) | |
tree | b1ee23fd5eee8fa9cea80e52bc6c68abda643252 /keyboards/keebio/bdn9/keymaps | |
parent | 89fdafc27d2dc8652886950655352ce8628a5d57 (diff) |
[Keymap] Keeb.io Sinc - Lickel keymap update (#19188)
Diffstat (limited to 'keyboards/keebio/bdn9/keymaps')
-rw-r--r-- | keyboards/keebio/bdn9/keymaps/lickel/keymap.c | 14 | ||||
-rw-r--r-- | keyboards/keebio/bdn9/keymaps/lickel/readme.md | 4 | ||||
-rw-r--r-- | keyboards/keebio/bdn9/keymaps/lickel/rules.mk | 1 |
3 files changed, 19 insertions, 0 deletions
diff --git a/keyboards/keebio/bdn9/keymaps/lickel/keymap.c b/keyboards/keebio/bdn9/keymaps/lickel/keymap.c index 7067b12d87..67a1642f37 100644 --- a/keyboards/keebio/bdn9/keymaps/lickel/keymap.c +++ b/keyboards/keebio/bdn9/keymaps/lickel/keymap.c @@ -103,6 +103,19 @@ layer_state_t layer_state_set_user(layer_state_t state) { return state; } +#ifdef ENCODER_MAP_ENABLE +const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = { +#if defined(RGBLIGHT_ENABLE) || defined(RGB_MATRIX_ENABLE) + [_MEDIA] = { ENCODER_CCW_CW(RGB_HUD, RGB_HUI), ENCODER_CCW_CW(RGB_SAD, RGB_SAI), ENCODER_CCW_CW(RGB_VAD, RGB_VAI) }, + [_XCODE] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU), ENCODER_CCW_CW(KC_UP, KC_DOWN), ENCODER_CCW_CW(KC_PGUP, KC_PGDN) }, +#else + [_MEDIA] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU), ENCODER_CCW_CW(KC_UP, KC_DOWN), ENCODER_CCW_CW(KC_PGUP, KC_PGDN) }, + [_XCODE] = { ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______) }, +#endif + [_CUST1] = { ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______) }, + [_CUST2] = { ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______) }, +}; +#else bool encoder_update_user(uint8_t index, bool clockwise) { uint8_t layer = get_highest_layer(layer_state); @@ -155,3 +168,4 @@ bool encoder_update_user(uint8_t index, bool clockwise) { } return true; } +#endif diff --git a/keyboards/keebio/bdn9/keymaps/lickel/readme.md b/keyboards/keebio/bdn9/keymaps/lickel/readme.md index 973cfb4a6d..72170ce452 100644 --- a/keyboards/keebio/bdn9/keymaps/lickel/readme.md +++ b/keyboards/keebio/bdn9/keymaps/lickel/readme.md @@ -12,6 +12,10 @@ ## Changelog +### 2022-12-09 - 1.1 + +- Add ENCODER_MAP_ENABLE from default VIA definition + ### 2022-01-17 - 1.0 - Initial release diff --git a/keyboards/keebio/bdn9/keymaps/lickel/rules.mk b/keyboards/keebio/bdn9/keymaps/lickel/rules.mk index c44f74d53a..ec89cb662f 100644 --- a/keyboards/keebio/bdn9/keymaps/lickel/rules.mk +++ b/keyboards/keebio/bdn9/keymaps/lickel/rules.mk @@ -3,3 +3,4 @@ LTO_ENABLE = yes MOUSEKEY_ENABLE = yes CONSOLE_ENABLE = no COMMAND_ENABLE = no +ENCODER_MAP_ENABLE = yes |