summaryrefslogtreecommitdiff
path: root/keyboards/mlego/m65/rev4
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/mlego/m65/rev4')
-rw-r--r--keyboards/mlego/m65/rev4/config.h12
-rw-r--r--keyboards/mlego/m65/rev4/info.json15
-rw-r--r--keyboards/mlego/m65/rev4/rules.mk8
3 files changed, 14 insertions, 21 deletions
diff --git a/keyboards/mlego/m65/rev4/config.h b/keyboards/mlego/m65/rev4/config.h
index afd8c86bcc..a8b9b596d5 100644
--- a/keyboards/mlego/m65/rev4/config.h
+++ b/keyboards/mlego/m65/rev4/config.h
@@ -17,10 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-#define LED_NUM_LOCK_PIN B12
-#define LED_SCROLL_LOCK_PIN B13
-#define LED_CAPS_LOCK_PIN C13
-
// 0 1 2 3 4
#define MATRIX_ROW_PINS \
{ B10, A5, A6, A7, B0 }
@@ -28,14 +24,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MATRIX_COL_PINS \
{ B14, A8, A10, A15, B3, B4, B5, B7, A1, A2, A3, A4, B1 }
-#ifdef ENCODER_ENABLE
-#define ENCODERS_PAD_A \
- { A0 }
-#define ENCODERS_PAD_B \
- { B6 }
-#define ENCODER_RESOLUTION 4
-#endif
-
#ifdef RGBLIGHT_ENABLE
#define RGB_DI_PIN B15
diff --git a/keyboards/mlego/m65/rev4/info.json b/keyboards/mlego/m65/rev4/info.json
index c94ea38e22..91af43a6a1 100644
--- a/keyboards/mlego/m65/rev4/info.json
+++ b/keyboards/mlego/m65/rev4/info.json
@@ -2,5 +2,18 @@
"usb": {
"pid": "0x6062",
"device_version": "0.0.2"
- }
+ },
+ "encoder": {
+ "rotary": [
+ {"pin_a": "A0", "pin_b": "B6"}
+ ]
+ },
+ "indicators": {
+ "caps_lock": "C13",
+ "num_lock": "B12",
+ "scroll_lock": "B13"
+ },
+ "processor": "STM32F401",
+ "bootloader": "tinyuf2",
+ "board": "BLACKPILL_STM32_F401"
}
diff --git a/keyboards/mlego/m65/rev4/rules.mk b/keyboards/mlego/m65/rev4/rules.mk
index a16dbefe32..bf9405e1d1 100644
--- a/keyboards/mlego/m65/rev4/rules.mk
+++ b/keyboards/mlego/m65/rev4/rules.mk
@@ -1,11 +1,3 @@
-# MCU name
-MCU = STM32F401
-BOARD = BLACKPILL_STM32_F401
-
-# Bootloader selection
-BOOTLOADER = tinyuf2
-#BOOTLOADER = stm32-dfu
-
# Build Options
# change yes to no to disable
#