diff options
| author | Ryan <fauxpark@gmail.com> | 2023-02-14 18:39:41 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-14 00:39:41 -0700 |
| commit | 2cdf99ae950a82e233482347651b7689c4896827 (patch) | |
| tree | f26def8c2fd844dad22095d5223fb539b7413ad0 /keyboards/spaceman | |
| parent | 0b796b91a352c6084ed0b4c0f5aa99cc9d2fa07c (diff) | |
Migrate `DIRECT_PINS` to data driven (#19826)
Diffstat (limited to 'keyboards/spaceman')
| -rw-r--r-- | keyboards/spaceman/2_milk/config.h | 10 | ||||
| -rw-r--r-- | keyboards/spaceman/2_milk/info.json | 6 |
2 files changed, 6 insertions, 10 deletions
diff --git a/keyboards/spaceman/2_milk/config.h b/keyboards/spaceman/2_milk/config.h index e631c03dff..59ffda45c0 100644 --- a/keyboards/spaceman/2_milk/config.h +++ b/keyboards/spaceman/2_milk/config.h | |||
| @@ -15,16 +15,6 @@ | |||
| 15 | */ | 15 | */ |
| 16 | #pragma once | 16 | #pragma once |
| 17 | 17 | ||
| 18 | /* key matrix size */ | ||
| 19 | #define MATRIX_ROWS 2 | ||
| 20 | #define MATRIX_COLS 1 | ||
| 21 | |||
| 22 | /* Milk default pinout */ | ||
| 23 | #define DIRECT_PINS { \ | ||
| 24 | {D4}, \ | ||
| 25 | {C6} \ | ||
| 26 | } | ||
| 27 | |||
| 28 | #ifdef RGBLIGHT_ENABLE | 18 | #ifdef RGBLIGHT_ENABLE |
| 29 | #define RGB_DI_PIN B6 | 19 | #define RGB_DI_PIN B6 |
| 30 | #define RGBLED_NUM 1 | 20 | #define RGBLED_NUM 1 |
diff --git a/keyboards/spaceman/2_milk/info.json b/keyboards/spaceman/2_milk/info.json index c7e4c944c7..c1f31a3ba7 100644 --- a/keyboards/spaceman/2_milk/info.json +++ b/keyboards/spaceman/2_milk/info.json | |||
| @@ -10,6 +10,12 @@ | |||
| 10 | }, | 10 | }, |
| 11 | "processor": "atmega32u4", | 11 | "processor": "atmega32u4", |
| 12 | "bootloader": "caterina", | 12 | "bootloader": "caterina", |
| 13 | "matrix_pins": { | ||
| 14 | "direct": [ | ||
| 15 | ["D4"], | ||
| 16 | ["C6"] | ||
| 17 | ] | ||
| 18 | }, | ||
| 13 | "layouts": { | 19 | "layouts": { |
| 14 | "LAYOUT": { | 20 | "LAYOUT": { |
| 15 | "layout": [ {"x": 0, "y": 0 }, {"x": 0, "y": 1 }] | 21 | "layout": [ {"x": 0, "y": 0 }, {"x": 0, "y": 1 }] |
