diff options
Diffstat (limited to 'keyboards/crbn')
-rw-r--r-- | keyboards/crbn/config.h | 15 | ||||
-rw-r--r-- | keyboards/crbn/info.json | 7 | ||||
-rw-r--r-- | keyboards/crbn/rules.mk | 6 |
3 files changed, 7 insertions, 21 deletions
diff --git a/keyboards/crbn/config.h b/keyboards/crbn/config.h index 47f8ca93a6..840d8e7ca5 100644 --- a/keyboards/crbn/config.h +++ b/keyboards/crbn/config.h @@ -16,11 +16,6 @@ #pragma once -#include "config_common.h" - -/* key matrix size */ -#define MATRIX_ROWS 4 -#define MATRIX_COLS 12 /* key matrix pins */ #define MATRIX_ROW_PINS { B3, B1, F7, F6 } @@ -29,16 +24,6 @@ /* COL2ROW or ROW2COL */ #define DIODE_DIRECTION COL2ROW -/*Rotary Encoder Pins*/ -#define ENCODERS_PAD_A { F5 } -#define ENCODERS_PAD_B { F4 } - -/*Sets the number of pulses per increment*/ -#define ENCODER_RESOLUTION 2 - -/* Set 0 if debouncing isn't needed */ -#define DEBOUNCE 5 - /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ #define LOCKING_SUPPORT_ENABLE diff --git a/keyboards/crbn/info.json b/keyboards/crbn/info.json index 6eb201df38..20d5ad2ff4 100644 --- a/keyboards/crbn/info.json +++ b/keyboards/crbn/info.json @@ -8,6 +8,13 @@ "pid": "0x0002", "device_version": "0.0.1" }, + "encoder": { + "rotary": [ + {"pin_a": "F5", "pin_b": "F4", "resolution": 2} + ] + }, + "processor": "atmega32u4", + "bootloader": "caterina", "community_layouts": [ "ortho_4x12", "planck_mit" ], "layout_aliases": { "LAYOUT_crbn_1x2u": "LAYOUT_planck_mit", diff --git a/keyboards/crbn/rules.mk b/keyboards/crbn/rules.mk index 1a63bd74b1..131aa72aeb 100644 --- a/keyboards/crbn/rules.mk +++ b/keyboards/crbn/rules.mk @@ -1,9 +1,3 @@ -# MCU name -MCU = atmega32u4 - -# Bootloader selection -BOOTLOADER = caterina - # Build Options # change yes to no to disable # |