diff options
Diffstat (limited to 'keyboards/synthlabs')
-rw-r--r-- | keyboards/synthlabs/060/config.h | 2 | ||||
-rw-r--r-- | keyboards/synthlabs/060/info.json | 3 | ||||
-rw-r--r-- | keyboards/synthlabs/solo/keymaps/via/keymap.c | 6 |
3 files changed, 7 insertions, 4 deletions
diff --git a/keyboards/synthlabs/060/config.h b/keyboards/synthlabs/060/config.h index 60dfb6ad51..16c2aae950 100644 --- a/keyboards/synthlabs/060/config.h +++ b/keyboards/synthlabs/060/config.h @@ -8,8 +8,6 @@ #define RGB_MATRIX_KEYPRESSES #define RGB_DISABLE_WHEN_USB_SUSPENDED -#define RGB_DI_PIN E6 - // RGB Matrix Animation modes // For full list of effects, see: // https://docs.qmk.fm/#/feature_rgb_matrix?id=rgb-matrix-effects diff --git a/keyboards/synthlabs/060/info.json b/keyboards/synthlabs/060/info.json index aee8d16713..75d503b883 100644 --- a/keyboards/synthlabs/060/info.json +++ b/keyboards/synthlabs/060/info.json @@ -16,6 +16,9 @@ "rgblight": false, "rgb_matrix": true }, + "ws2812": { + "pin": "E6" + }, "matrix_pins": { "cols": [ "D6", "D7", "B4", "B5", "B6", "C6", "C7", "D4", "D5", "D3", "D2", "D1", "D0", "B7" ], "rows": [ "F0", "F1", "F4", "F5", "F6" ] diff --git a/keyboards/synthlabs/solo/keymaps/via/keymap.c b/keyboards/synthlabs/solo/keymaps/via/keymap.c index c6634c42d4..84f99df9ab 100644 --- a/keyboards/synthlabs/solo/keymaps/via/keymap.c +++ b/keyboards/synthlabs/solo/keymaps/via/keymap.c @@ -37,7 +37,8 @@ void encoder_action_unregister(void) { keyevent_t encoder_event = (keyevent_t) { .key = encoder_state[index] >> 1 ? encoder_cw[index] : encoder_ccw[index], .pressed = false, - .time = (timer_read() | 1) + .time = timer_read(), + .type = KEY_EVENT }; encoder_state[index] = 0; action_exec(encoder_event); @@ -49,7 +50,8 @@ void encoder_action_register(uint8_t index, bool clockwise) { keyevent_t encoder_event = (keyevent_t) { .key = clockwise ? encoder_cw[index] : encoder_ccw[index], .pressed = true, - .time = (timer_read() | 1) + .time = timer_read(), + .type = KEY_EVENT }; encoder_state[index] = (clockwise ^ 1) | (clockwise << 1); action_exec(encoder_event); |