summaryrefslogtreecommitdiff
path: root/keyboards/anavi/knob1
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/anavi/knob1')
-rw-r--r--keyboards/anavi/knob1/info.json45
-rw-r--r--keyboards/anavi/knob1/knob1.c12
-rw-r--r--keyboards/anavi/knob1/rules.mk2
3 files changed, 22 insertions, 37 deletions
diff --git a/keyboards/anavi/knob1/info.json b/keyboards/anavi/knob1/info.json
index cb85035a22..06acec583f 100644
--- a/keyboards/anavi/knob1/info.json
+++ b/keyboards/anavi/knob1/info.json
@@ -12,36 +12,35 @@
"extrakey": true,
"mousekey": false,
"nkro": true,
- "rgblight": true
+ "rgblight": true
},
"rgblight": {
- "pin": "GP12",
"led_count": 1,
- "hue_steps": 10,
- "saturation_steps": 17,
+ "hue_steps": 10,
+ "saturation_steps": 17,
"brightness_steps": 17,
- "max_brightness": 255,
- "animations": {
- "alternating": true,
- "breathing": true,
- "christmas": true,
- "knight": true,
- "rainbow_mood": true,
- "rainbow_swirl": true,
- "rgb_test": true,
- "snake": true,
- "static_gradient": true,
- "twinkle": true
+ "max_brightness": 255,
+ "animations": {
+ "alternating": true,
+ "breathing": true,
+ "christmas": true,
+ "knight": true,
+ "rainbow_mood": true,
+ "rainbow_swirl": true,
+ "rgb_test": true,
+ "snake": true,
+ "static_gradient": true,
+ "twinkle": true
}
},
+ "ws2812": {
+ "pin": "GP12",
+ "driver": "vendor"
+ },
"encoder": {
- "enabled": true,
+ "enabled": true,
"rotary": [
- {
- "pin_a": "GP27",
- "pin_b": "GP28",
- "resolution": 2
- }
+ {"pin_a": "GP27", "pin_b": "GP28", "resolution": 2}
]
},
"matrix_pins": {
@@ -52,7 +51,7 @@
"layouts": {
"LAYOUT_k1": {
"layout": [
- { "x": 0, "y": 0, "matrix": [0, 0] }
+ {"x": 0, "y": 0, "matrix": [0, 0]}
]
}
},
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