diff options
author | Danny <nooges@users.noreply.github.com> | 2023-07-06 02:42:57 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-06 00:42:57 -0600 |
commit | f19a0a071f1dbd8f50e7f4039b4607cf4bc2ba94 (patch) | |
tree | d3f592c4f9dce98f8cb5191be10155ed600623af /keyboards/keebio/nyquist/keymaps/via | |
parent | 80d679fac3406d9c3d6f3b10e133161c3f938697 (diff) |
[Keyboard] Add Nyquist Rev. 4 (#21421)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Diffstat (limited to 'keyboards/keebio/nyquist/keymaps/via')
-rw-r--r-- | keyboards/keebio/nyquist/keymaps/via/keymap.c | 9 | ||||
-rw-r--r-- | keyboards/keebio/nyquist/keymaps/via/rules.mk | 3 |
2 files changed, 11 insertions, 1 deletions
diff --git a/keyboards/keebio/nyquist/keymaps/via/keymap.c b/keyboards/keebio/nyquist/keymaps/via/keymap.c index 5d986e69a0..6d37f4f9b5 100644 --- a/keyboards/keebio/nyquist/keymaps/via/keymap.c +++ b/keyboards/keebio/nyquist/keymaps/via/keymap.c @@ -44,3 +44,12 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ ) }; + +#ifdef ENCODER_MAP_ENABLE +const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = { + [0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU), ENCODER_CCW_CW(KC_PGUP, KC_PGDN) }, + [1] = { ENCODER_CCW_CW(RGB_MOD, RGB_RMOD), ENCODER_CCW_CW(KC_MNXT, KC_MPRV) }, + [2] = { ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______) }, + [3] = { ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______) } +}; +#endif diff --git a/keyboards/keebio/nyquist/keymaps/via/rules.mk b/keyboards/keebio/nyquist/keymaps/via/rules.mk index 43061db1dd..1189f4ad19 100644 --- a/keyboards/keebio/nyquist/keymaps/via/rules.mk +++ b/keyboards/keebio/nyquist/keymaps/via/rules.mk @@ -1,2 +1,3 @@ VIA_ENABLE = yes -LTO_ENABLE = yes
\ No newline at end of file +LTO_ENABLE = yes +ENCODER_MAP_ENABLE = yes |