diff options
Diffstat (limited to 'keyboards/anavi')
-rw-r--r-- | keyboards/anavi/knob1/info.json | 3 | ||||
-rw-r--r-- | keyboards/anavi/knob1/knob1.c | 12 | ||||
-rw-r--r-- | keyboards/anavi/knob1/rules.mk | 2 | ||||
-rw-r--r-- | keyboards/anavi/knobs3/info.json | 3 | ||||
-rw-r--r-- | keyboards/anavi/knobs3/rules.mk | 2 | ||||
-rw-r--r-- | keyboards/anavi/macropad10/info.json | 3 | ||||
-rw-r--r-- | keyboards/anavi/macropad10/macropad10.c | 16 | ||||
-rw-r--r-- | keyboards/anavi/macropad10/rules.mk | 1 |
8 files changed, 9 insertions, 33 deletions
diff --git a/keyboards/anavi/knob1/info.json b/keyboards/anavi/knob1/info.json index cb85035a22..3d9780a741 100644 --- a/keyboards/anavi/knob1/info.json +++ b/keyboards/anavi/knob1/info.json @@ -34,6 +34,9 @@ "twinkle": true } }, + "ws2812": { + "driver": "vendor" + }, "encoder": { "enabled": true, "rotary": [ diff --git a/keyboards/anavi/knob1/knob1.c b/keyboards/anavi/knob1/knob1.c index c1ed7b7726..bb6f1e38bf 100644 --- a/keyboards/anavi/knob1/knob1.c +++ b/keyboards/anavi/knob1/knob1.c @@ -14,18 +14,6 @@ void keyboard_post_init_kb(void) { keyboard_post_init_user(); } -#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 true; -} -#endif - #ifdef OLED_ENABLE bool oled_task_kb(void) { diff --git a/keyboards/anavi/knob1/rules.mk b/keyboards/anavi/knob1/rules.mk index ed8acbe4ac..c3600290d9 100644 --- a/keyboards/anavi/knob1/rules.mk +++ b/keyboards/anavi/knob1/rules.mk @@ -1,5 +1,3 @@ -WS2812_DRIVER = vendor - OLED_ENABLE = yes OLED_DRIVER = SSD1306 # Enable Support for SSD1306 or SH1106 OLED Displays; Communicating over I2C diff --git a/keyboards/anavi/knobs3/info.json b/keyboards/anavi/knobs3/info.json index 8bea49066d..b7bba5eddc 100644 --- a/keyboards/anavi/knobs3/info.json +++ b/keyboards/anavi/knobs3/info.json @@ -39,6 +39,9 @@ "twinkle": true } }, + "ws2812": { + "driver": "vendor" + }, "encoder": { "enabled": true, "rotary": [ diff --git a/keyboards/anavi/knobs3/rules.mk b/keyboards/anavi/knobs3/rules.mk index ed8acbe4ac..c3600290d9 100644 --- a/keyboards/anavi/knobs3/rules.mk +++ b/keyboards/anavi/knobs3/rules.mk @@ -1,5 +1,3 @@ -WS2812_DRIVER = vendor - OLED_ENABLE = yes OLED_DRIVER = SSD1306 # Enable Support for SSD1306 or SH1106 OLED Displays; Communicating over I2C diff --git a/keyboards/anavi/macropad10/info.json b/keyboards/anavi/macropad10/info.json index 5b1a9d8546..4572655ce7 100644 --- a/keyboards/anavi/macropad10/info.json +++ b/keyboards/anavi/macropad10/info.json @@ -39,6 +39,9 @@ "twinkle": true } }, + "ws2812": { + "driver": "vendor" + }, "encoder": { "enabled": true, "rotary": [ diff --git a/keyboards/anavi/macropad10/macropad10.c b/keyboards/anavi/macropad10/macropad10.c deleted file mode 100644 index bebefd0da9..0000000000 --- a/keyboards/anavi/macropad10/macropad10.c +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright 2022 Leon Anavi <leon@anavi.org> -// SPDX-License-Identifier: GPL-2.0-or-later -#include "encoder.h" - -#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 true; -} -#endif - diff --git a/keyboards/anavi/macropad10/rules.mk b/keyboards/anavi/macropad10/rules.mk index 997fce7e65..e69de29bb2 100644 --- a/keyboards/anavi/macropad10/rules.mk +++ b/keyboards/anavi/macropad10/rules.mk @@ -1 +0,0 @@ -WS2812_DRIVER = vendor |