diff options
Diffstat (limited to 'keyboards/anavi/macropad10')
-rw-r--r-- | keyboards/anavi/macropad10/info.json | 43 | ||||
-rw-r--r-- | keyboards/anavi/macropad10/macropad10.c | 16 | ||||
-rw-r--r-- | keyboards/anavi/macropad10/rules.mk | 1 |
3 files changed, 21 insertions, 39 deletions
diff --git a/keyboards/anavi/macropad10/info.json b/keyboards/anavi/macropad10/info.json index 5b1a9d8546..41f25ee633 100644 --- a/keyboards/anavi/macropad10/info.json +++ b/keyboards/anavi/macropad10/info.json @@ -17,36 +17,35 @@ "extrakey": true, "mousekey": false, "nkro": true, - "rgblight": true + "rgblight": true }, "rgblight": { - "pin": "GP3", "led_count": 4, - "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": "GP3", + "driver": "vendor" + }, "encoder": { - "enabled": true, + "enabled": true, "rotary": [ - { - "pin_a": "GP1", - "pin_b": "GP2", - "resolution": 2 - } + {"pin_a": "GP1", "pin_b": "GP2", "resolution": 2} ] }, "layouts": { 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 |