diff options
Diffstat (limited to 'keyboards/wolf/frogpad')
-rw-r--r-- | keyboards/wolf/frogpad/info.json | 4 | ||||
-rw-r--r-- | keyboards/wolf/frogpad/keymaps/default/keymap.c | 2 | ||||
-rw-r--r-- | keyboards/wolf/frogpad/keymaps/via/keymap.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/keyboards/wolf/frogpad/info.json b/keyboards/wolf/frogpad/info.json index 4efd640ba0..14ef77da0e 100644 --- a/keyboards/wolf/frogpad/info.json +++ b/keyboards/wolf/frogpad/info.json @@ -19,8 +19,8 @@ }, "encoder": { "rotary": [ - { "pin_a": "F4", "pin_b": "F1" }, - { "pin_a": "B1", "pin_b": "B2" } + {"pin_a": "F4", "pin_b": "F1"}, + {"pin_a": "B1", "pin_b": "B2"} ] }, "processor": "atmega32u4", diff --git a/keyboards/wolf/frogpad/keymaps/default/keymap.c b/keyboards/wolf/frogpad/keymaps/default/keymap.c index e7f88542bc..adc4cf77e8 100644 --- a/keyboards/wolf/frogpad/keymaps/default/keymap.c +++ b/keyboards/wolf/frogpad/keymaps/default/keymap.c @@ -41,7 +41,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { }; #if defined(ENCODER_MAP_ENABLE) -const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = { +const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = { [_LAYER0] = { ENCODER_CCW_CW(KC_MS_WH_UP, KC_MS_WH_DOWN), ENCODER_CCW_CW(KC_VOLD, KC_VOLU) }, [_LAYER1] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS), ENCODER_CCW_CW(KC_TRNS, KC_TRNS) } }; diff --git a/keyboards/wolf/frogpad/keymaps/via/keymap.c b/keyboards/wolf/frogpad/keymaps/via/keymap.c index 0a95b54b66..dfc5c15ae4 100644 --- a/keyboards/wolf/frogpad/keymaps/via/keymap.c +++ b/keyboards/wolf/frogpad/keymaps/via/keymap.c @@ -61,7 +61,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { }; #if defined(ENCODER_MAP_ENABLE) -const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = { +const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = { [_LAYER0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU), ENCODER_CCW_CW(KC_MS_WH_UP, KC_MS_WH_DOWN) }, [_LAYER1] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS), ENCODER_CCW_CW(KC_TRNS, KC_TRNS) }, [_LAYER2] = { ENCODER_CCW_CW(KC_TRNS, KC_TRNS), ENCODER_CCW_CW(KC_TRNS, KC_TRNS) }, |