summaryrefslogtreecommitdiff
path: root/keyboards/25keys
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-02-14 18:39:41 +1100
committerGitHub <noreply@github.com>2023-02-14 00:39:41 -0700
commit2cdf99ae950a82e233482347651b7689c4896827 (patch)
treef26def8c2fd844dad22095d5223fb539b7413ad0 /keyboards/25keys
parent0b796b91a352c6084ed0b4c0f5aa99cc9d2fa07c (diff)
Migrate `DIRECT_PINS` to data driven (#19826)
Diffstat (limited to 'keyboards/25keys')
-rw-r--r--keyboards/25keys/cassette42/config.h7
-rw-r--r--keyboards/25keys/cassette42/info.json5
2 files changed, 5 insertions, 7 deletions
diff --git a/keyboards/25keys/cassette42/config.h b/keyboards/25keys/cassette42/config.h
index fe43496227..c57f66da5d 100644
--- a/keyboards/25keys/cassette42/config.h
+++ b/keyboards/25keys/cassette42/config.h
@@ -17,13 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
17 17
18#pragma once 18#pragma once
19 19
20
21/* key matrix size */
22#define MATRIX_ROWS 1
23#define MATRIX_COLS 6
24
25#define DIRECT_PINS {{ B4, F6, F5, F4, B5, F7 }}
26
27#define ENCODERS_PAD_A { B6, B3 } 20#define ENCODERS_PAD_A { B6, B3 }
28#define ENCODERS_PAD_B { B2, B1 } 21#define ENCODERS_PAD_B { B2, B1 }
29#define ENCODER_RESOLUTION 4 22#define ENCODER_RESOLUTION 4
diff --git a/keyboards/25keys/cassette42/info.json b/keyboards/25keys/cassette42/info.json
index 5150c28422..546e02ab63 100644
--- a/keyboards/25keys/cassette42/info.json
+++ b/keyboards/25keys/cassette42/info.json
@@ -10,6 +10,11 @@
10 }, 10 },
11 "processor": "atmega32u4", 11 "processor": "atmega32u4",
12 "bootloader": "caterina", 12 "bootloader": "caterina",
13 "matrix_pins": {
14 "direct": [
15 ["B4", "F6", "F5", "F4", "B5", "F7"]
16 ]
17 },
13 "layouts": { 18 "layouts": {
14 "LAYOUT": { 19 "LAYOUT": {
15 "layout": [{"x":0.5, "y":0.75}, {"x":2.5, "y":0.75}, {"x":0, "y":1.75}, {"x":1, "y":1.75}, {"x":2, "y":1.75}, {"x":3, "y":1.75}] 20 "layout": [{"x":0.5, "y":0.75}, {"x":2.5, "y":0.75}, {"x":0, "y":1.75}, {"x":1, "y":1.75}, {"x":2, "y":1.75}, {"x":3, "y":1.75}]