diff options
Diffstat (limited to 'keyboards/ck60i')
-rw-r--r-- | keyboards/ck60i/ck60i.c | 12 | ||||
-rw-r--r-- | keyboards/ck60i/config.h | 5 | ||||
-rw-r--r-- | keyboards/ck60i/info.json | 8 |
3 files changed, 8 insertions, 17 deletions
diff --git a/keyboards/ck60i/ck60i.c b/keyboards/ck60i/ck60i.c index 7e5cd33218..b102aad40c 100644 --- a/keyboards/ck60i/ck60i.c +++ b/keyboards/ck60i/ck60i.c @@ -16,15 +16,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include "ck60i.h" - -bool encoder_update_kb(uint8_t index, bool clockwise) { - if (!encoder_update_user(index, clockwise)) return false; - if (index == 0) { /* First encoder */ - if (clockwise) { - tap_code(KC_VOLU); - } else { - tap_code(KC_VOLD); - } - } - return true; -} diff --git a/keyboards/ck60i/config.h b/keyboards/ck60i/config.h index 908eb0d188..3db1523344 100644 --- a/keyboards/ck60i/config.h +++ b/keyboards/ck60i/config.h @@ -17,10 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #pragma once -#define MATRIX_COL_PINS { B12, A2 , A1 , A0 , F1 , F0 , B11, B10, B2 , B1 , B0 , A7 , C15, C14} -#define MATRIX_ROW_PINS { B9 , C13, A3 , B14, A8} -#define DIODE_DIRECTION COL2ROW - #define BACKLIGHT_PWM_DRIVER PWMD3 #define BACKLIGHT_PWM_CHANNEL 1 #define BACKLIGHT_PAL_MODE 1 @@ -30,7 +26,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. /* Locking resynchronize hack */ #define LOCKING_RESYNC_ENABLE -#define RGB_DI_PIN B15 #define RGBLED_NUM 16 #define RGBLIGHT_LIMIT_VAL 200 #define RGBLIGHT_SLEEP diff --git a/keyboards/ck60i/info.json b/keyboards/ck60i/info.json index 22e8f265f6..e48f22ab49 100644 --- a/keyboards/ck60i/info.json +++ b/keyboards/ck60i/info.json @@ -8,6 +8,11 @@ "pid": "0x6049", "device_version": "0.0.1" }, + "matrix_pins": { + "cols": ["B12", "A2", "A1", "A0", "F1", "F0", "B11", "B10", "B2", "B1", "B0", "A7", "C15", "C14"], + "rows": ["B9", "C13", "A3", "B14", "A8"] + }, + "diode_direction": "COL2ROW", "encoder": { "rotary": [ {"pin_a": "A5", "pin_b": "A4"} @@ -18,6 +23,9 @@ "levels": 6, "breathing": true }, + "ws2812": { + "pin": "B15" + }, "processor": "STM32F072", "bootloader": "stm32-dfu", "layouts": { |