summaryrefslogtreecommitdiff
path: root/keyboards/jian
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-04-30 01:51:45 +1000
committerGitHub <noreply@github.com>2023-04-30 01:51:45 +1000
commit998a4d744e60d7d769ddabad1bc8653314f02b02 (patch)
tree8040bfd3cd910fb0f6416dc65d88564593e9046b /keyboards/jian
parent03328ea7a88995138e0696304738d10942f55129 (diff)
Remove `FLIP_HALF` layouts and move to data driven (#20588)
Diffstat (limited to 'keyboards/jian')
-rw-r--r--keyboards/jian/rev1/info.json17
-rw-r--r--keyboards/jian/rev1/rev1.c2
-rw-r--r--keyboards/jian/rev1/rev1.h22
3 files changed, 18 insertions, 23 deletions
diff --git a/keyboards/jian/rev1/info.json b/keyboards/jian/rev1/info.json
index af1ae29d0d..e7e386088a 100644
--- a/keyboards/jian/rev1/info.json
+++ b/keyboards/jian/rev1/info.json
@@ -72,6 +72,23 @@
{"matrix": [7, 5], "x": 10, "y": 3.375},
{"matrix": [7, 4], "x": 11, "y": 3.25}
]
+ },
+ "LAYOUT_dips": {
+ "layout": [
+ {"matrix": [1, 0], "x": 0, "y": 0},
+ {"matrix": [2, 0], "x": 1, "y": 0},
+ {"matrix": [3, 0], "x": 2, "y": 0},
+ {"matrix": [3, 1], "x": 3, "y": 0},
+ {"matrix": [3, 2], "x": 4, "y": 0},
+ {"matrix": [3, 3], "x": 5, "y": 0},
+
+ {"matrix": [7, 3], "x": 6, "y": 0},
+ {"matrix": [7, 2], "x": 7, "y": 0},
+ {"matrix": [7, 1], "x": 8, "y": 0},
+ {"matrix": [7, 0], "x": 9, "y": 0},
+ {"matrix": [6, 0], "x": 10, "y": 0},
+ {"matrix": [5, 0], "x": 11, "y": 0}
+ ]
}
}
}
diff --git a/keyboards/jian/rev1/rev1.c b/keyboards/jian/rev1/rev1.c
index 40d9f3beda..1b77aa53c4 100644
--- a/keyboards/jian/rev1/rev1.c
+++ b/keyboards/jian/rev1/rev1.c
@@ -1,4 +1,4 @@
-#include "rev1.h"
+#include "quantum.h"
#ifdef SWAP_HANDS_ENABLE
__attribute__ ((weak))
diff --git a/keyboards/jian/rev1/rev1.h b/keyboards/jian/rev1/rev1.h
deleted file mode 100644
index 8f42184bdf..0000000000
--- a/keyboards/jian/rev1/rev1.h
+++ /dev/null
@@ -1,22 +0,0 @@
-#pragma once
-
-#include "quantum.h"
-
-#define XXX KC_NO
-
-#ifdef DIPS_ENABLE
-#define LAYOUT_dips( \
- DL0, DL1, DL2, DL3, DL4, DL5, \
- DR5, DR4, DR3, DR2, DR1, DR0 \
-) \
-{ \
- {XXX, XXX, XXX, XXX, XXX, XXX, XXX}, \
- {DL0, XXX, XXX, XXX, XXX, XXX, XXX}, \
- {DL1, XXX, XXX, XXX, XXX, XXX, XXX}, \
- {DL2, DL3, DL4, DL5, XXX, XXX, XXX}, \
- {XXX, XXX, XXX, XXX, XXX, XXX, XXX}, \
- {DR0, XXX, XXX, XXX, XXX, XXX, XXX}, \
- {DR1, XXX, XXX, XXX, XXX, XXX, XXX}, \
- {DR2, DR3, DR4, DR5, XXX, XXX, XXX}, \
-}
-#endif // DIPS_ENABLE