summaryrefslogtreecommitdiffstats
path: root/keyboards/anavi/knob1
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/anavi/knob1')
-rw-r--r--keyboards/anavi/knob1/info.json5
-rw-r--r--keyboards/anavi/knob1/knob1.c12
-rw-r--r--keyboards/anavi/knob1/rules.mk2
3 files changed, 4 insertions, 15 deletions
diff --git a/keyboards/anavi/knob1/info.json b/keyboards/anavi/knob1/info.json
index cb85035a22..272097dd8c 100644
--- a/keyboards/anavi/knob1/info.json
+++ b/keyboards/anavi/knob1/info.json
@@ -15,7 +15,6 @@
"rgblight": true
},
"rgblight": {
- "pin": "GP12",
"led_count": 1,
"hue_steps": 10,
"saturation_steps": 17,
@@ -34,6 +33,10 @@
"twinkle": true
}
},
+ "ws2812": {
+ "pin": "GP12",
+ "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