diff options
Diffstat (limited to 'keyboards/clueboard/2x1800/2019')
-rw-r--r-- | keyboards/clueboard/2x1800/2019/2019.h | 6 | ||||
-rw-r--r-- | keyboards/clueboard/2x1800/2019/config.h | 9 | ||||
-rw-r--r-- | keyboards/clueboard/2x1800/2019/info.json | 9 |
3 files changed, 9 insertions, 15 deletions
diff --git a/keyboards/clueboard/2x1800/2019/2019.h b/keyboards/clueboard/2x1800/2019/2019.h index 5debfacc5d..c5869ff66f 100644 --- a/keyboards/clueboard/2x1800/2019/2019.h +++ b/keyboards/clueboard/2x1800/2019/2019.h @@ -18,16 +18,12 @@ #include "quantum.h" enum TWOx1800_keycodes { - ENC_BTN1 = SAFE_RANGE, + ENC_BTN1 = QK_KB_0, ENC_BTN2, ENC_BTN3, ENC_BTN4, - NEW_SAFE_RANGE }; -#undef SAFE_RANGE -#define SAFE_RANGE NEW_SAFE_RANGE - // Encoder update function that returns true/false bool encoder_update_keymap(uint8_t index, bool clockwise); diff --git a/keyboards/clueboard/2x1800/2019/config.h b/keyboards/clueboard/2x1800/2019/config.h index 162d41a2e2..031952a0b3 100644 --- a/keyboards/clueboard/2x1800/2019/config.h +++ b/keyboards/clueboard/2x1800/2019/config.h @@ -17,15 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #pragma once -#include "config_common.h" - -/* - * Encoder Assignments - */ -#define ENCODERS_PAD_A { A5, A4, A2, A1 } -#define ENCODERS_PAD_B { A6, A7, A3, A0 } -#define ENCODER_RESOLUTION 4 - /* audio support */ #define AUDIO_PIN_ALT B7 #define AUDIO_PIN C4 diff --git a/keyboards/clueboard/2x1800/2019/info.json b/keyboards/clueboard/2x1800/2019/info.json index 886f3878bf..0eebbabb6d 100644 --- a/keyboards/clueboard/2x1800/2019/info.json +++ b/keyboards/clueboard/2x1800/2019/info.json @@ -2,7 +2,6 @@ "manufacturer": "Clueboard", "keyboard_name": "Clueboard 2x1800 2019", "maintainer": "skullydazed", - "debounce": 5, "processor": "at90usb1286", "bootloader": "halfkay", "diode_direction": "ROW2COL", @@ -28,6 +27,14 @@ "pid": "0x23A0", "vid": "0xC1ED" }, + "encoder": { + "rotary": [ + {"pin_a": "A5", "pin_b": "A6"}, + {"pin_a": "A4", "pin_b": "A7"}, + {"pin_a": "A2", "pin_b": "A3"}, + {"pin_a": "A1", "pin_b": "A0"} + ] + }, "layout_aliases": { "LAYOUT": "LAYOUT_all" }, |