diff options
Diffstat (limited to 'keyboards/reedskeebs/alish40')
-rw-r--r-- | keyboards/reedskeebs/alish40/alish40.c | 22 | ||||
-rw-r--r-- | keyboards/reedskeebs/alish40/info.json | 4 | ||||
-rw-r--r-- | keyboards/reedskeebs/alish40/keymaps/default/keymap.c | 2 | ||||
-rw-r--r-- | keyboards/reedskeebs/alish40/keymaps/via/keymap.c | 2 |
4 files changed, 5 insertions, 25 deletions
diff --git a/keyboards/reedskeebs/alish40/alish40.c b/keyboards/reedskeebs/alish40/alish40.c deleted file mode 100644 index 685eae8de8..0000000000 --- a/keyboards/reedskeebs/alish40/alish40.c +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright 2023 QMK Contributors (@qmk) -// SPDX-License-Identifier: GPL-2.0-or-later - -#include "quantum.h" - -#ifdef ENCODER_ENABLE -bool encoder_update_kb(uint8_t index, bool clockwise) { - if (!encoder_update_user(index, clockwise)) { - return false; - } - switch (index) { - case 0: - if (clockwise) { - tap_code(KC_VOLU); - } else { - tap_code(KC_VOLD); - } - break; - } - return true; -} -#endif diff --git a/keyboards/reedskeebs/alish40/info.json b/keyboards/reedskeebs/alish40/info.json index a4f862bec9..d916d4173b 100644 --- a/keyboards/reedskeebs/alish40/info.json +++ b/keyboards/reedskeebs/alish40/info.json @@ -40,9 +40,11 @@ "brightness_steps": 17, "hue_steps": 10, "led_count": 10, - "pin": "F5", "saturation_steps": 17 }, + "ws2812": { + "pin": "F5" + }, "url": "https://mechwild.com/product/alish/", "usb": { "device_version": "1.3.0", diff --git a/keyboards/reedskeebs/alish40/keymaps/default/keymap.c b/keyboards/reedskeebs/alish40/keymaps/default/keymap.c index d84426cd9d..fb6b5971b6 100644 --- a/keyboards/reedskeebs/alish40/keymaps/default/keymap.c +++ b/keyboards/reedskeebs/alish40/keymaps/default/keymap.c @@ -33,7 +33,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(RGB_SAD, RGB_SAI) }, [2] = { ENCODER_CCW_CW(RGB_SPD, RGB_SPI) }, diff --git a/keyboards/reedskeebs/alish40/keymaps/via/keymap.c b/keyboards/reedskeebs/alish40/keymaps/via/keymap.c index d84426cd9d..fb6b5971b6 100644 --- a/keyboards/reedskeebs/alish40/keymaps/via/keymap.c +++ b/keyboards/reedskeebs/alish40/keymaps/via/keymap.c @@ -33,7 +33,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(RGB_SAD, RGB_SAI) }, [2] = { ENCODER_CCW_CW(RGB_SPD, RGB_SPI) }, |