diff options
Diffstat (limited to 'keyboards/drop')
-rw-r--r-- | keyboards/drop/sense75/info.json | 1 | ||||
-rw-r--r-- | keyboards/drop/sense75/keymaps/default/keymap.c | 2 | ||||
-rw-r--r-- | keyboards/drop/sense75/keymaps/default_md/keymap.c | 2 | ||||
-rw-r--r-- | keyboards/drop/sense75/keymaps/via/keymap.c | 2 | ||||
-rw-r--r-- | keyboards/drop/sense75/rules.mk | 1 | ||||
-rw-r--r-- | keyboards/drop/sense75/sense75.c | 13 |
6 files changed, 4 insertions, 17 deletions
diff --git a/keyboards/drop/sense75/info.json b/keyboards/drop/sense75/info.json index 8fd65c1bd7..a4aba158c1 100644 --- a/keyboards/drop/sense75/info.json +++ b/keyboards/drop/sense75/info.json @@ -113,6 +113,7 @@ } }, "rgb_matrix": { + "driver": "IS31FL3733", "layout": [ { "flags": 2, "x": 2, "y": 0 }, { "flags": 2, "x": 22, "y": 0 }, diff --git a/keyboards/drop/sense75/keymaps/default/keymap.c b/keyboards/drop/sense75/keymaps/default/keymap.c index a9711953de..44d58b0521 100644 --- a/keyboards/drop/sense75/keymaps/default/keymap.c +++ b/keyboards/drop/sense75/keymaps/default/keymap.c @@ -39,7 +39,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] = { [0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) }, [1] = { ENCODER_CCW_CW(KC_MPRV, KC_MNXT) } }; diff --git a/keyboards/drop/sense75/keymaps/default_md/keymap.c b/keyboards/drop/sense75/keymaps/default_md/keymap.c index cb25f5cc2d..871cdb2b6d 100644 --- a/keyboards/drop/sense75/keymaps/default_md/keymap.c +++ b/keyboards/drop/sense75/keymaps/default_md/keymap.c @@ -54,7 +54,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] = { [0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) }, [1] = { ENCODER_CCW_CW(KC_MPRV, KC_MNXT) }, [2] = { ENCODER_CCW_CW(_______, _______) } diff --git a/keyboards/drop/sense75/keymaps/via/keymap.c b/keyboards/drop/sense75/keymaps/via/keymap.c index c1e3c4edf3..7304ec42d5 100644 --- a/keyboards/drop/sense75/keymaps/via/keymap.c +++ b/keyboards/drop/sense75/keymaps/via/keymap.c @@ -47,7 +47,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] = { [0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) }, [1] = { ENCODER_CCW_CW(KC_MPRV, KC_MNXT) }, [2] = { ENCODER_CCW_CW(_______, _______) } diff --git a/keyboards/drop/sense75/rules.mk b/keyboards/drop/sense75/rules.mk index 781ba9b35a..44adba039b 100644 --- a/keyboards/drop/sense75/rules.mk +++ b/keyboards/drop/sense75/rules.mk @@ -1,2 +1 @@ EEPROM_DRIVER = i2c -RGB_MATRIX_DRIVER = IS31FL3733 diff --git a/keyboards/drop/sense75/sense75.c b/keyboards/drop/sense75/sense75.c index a8cb28b054..cbc194ee8f 100644 --- a/keyboards/drop/sense75/sense75.c +++ b/keyboards/drop/sense75/sense75.c @@ -133,16 +133,3 @@ const is31_led PROGMEM g_is31_leds[RGB_MATRIX_LED_COUNT] = { { 1, H_16, G_16, I_16 } }; #endif - -#ifdef ENCODER_ENABLE -bool encoder_update_kb(uint8_t index, bool clockwise) { - if (!encoder_update_user(index, clockwise)) return false; - - if (clockwise) { - tap_code(KC_VOLU); - } else { - tap_code(KC_VOLD); - } - return false; -} -#endif |