summaryrefslogtreecommitdiffstats
path: root/keyboards/40percentclub/6lit
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/40percentclub/6lit
parent03328ea7a88995138e0696304738d10942f55129 (diff)
Remove `FLIP_HALF` layouts and move to data driven (#20588)
Diffstat (limited to 'keyboards/40percentclub/6lit')
-rw-r--r--keyboards/40percentclub/6lit/6lit.h36
-rw-r--r--keyboards/40percentclub/6lit/info.json28
2 files changed, 24 insertions, 40 deletions
diff --git a/keyboards/40percentclub/6lit/6lit.h b/keyboards/40percentclub/6lit/6lit.h
index af01d44c2a..4d83aa8aad 100644
--- a/keyboards/40percentclub/6lit/6lit.h
+++ b/keyboards/40percentclub/6lit/6lit.h
@@ -16,42 +16,6 @@
#pragma once
#include "quantum.h"
-#define ___ KC_NO
-
-#ifndef FLIP_HALF
-#define LAYOUT_ortho_2x6( \
- L00, L01, L02, R00, R01, R02, \
- L10, L11, L12, R10, R11, R12 \
-) { \
- { L00, L01, L02 }, \
- { L10, L11, L12 }, \
- { R02, R01, R00 }, \
- { R12, R11, R10 }, \
-}
-#else
-#define LAYOUT_ortho_2x6( \
- L00, L01, L02, R00, R01, R02, \
- L10, L11, L12, R10, R11, R12 \
-) { \
- { L00, L01, L02 }, \
- { L10, L11, L12 }, \
- { R00, R01, R02 }, \
- { R10, R11, R12 }, \
-}
-#endif
-
-#define LAYOUT_ortho_2x3( \
- L00, L01, L02, \
- L10, L11, L12 \
-) { \
- { L00, L01, L02 }, \
- { L10, L11, L12 }, \
- { ___, ___, ___ }, \
- { ___, ___, ___ }, \
-}
-
-#define LAYOUT_macro LAYOUT_ortho_2x3
-#define LAYOUT_split LAYOUT_ortho_2x6
#ifdef USE_I2C
#error "I2C not Supported"
diff --git a/keyboards/40percentclub/6lit/info.json b/keyboards/40percentclub/6lit/info.json
index 9ddd475570..00e91edb42 100644
--- a/keyboards/40percentclub/6lit/info.json
+++ b/keyboards/40percentclub/6lit/info.json
@@ -19,17 +19,37 @@
"processor": "atmega32u4",
"bootloader": "caterina",
"community_layouts": ["ortho_2x3", "ortho_2x6"],
+ "layout_aliases": {
+ "LAYOUT_macro": "LAYOUT_ortho_2x3",
+ "LAYOUT_split": "LAYOUT_ortho_2x6"
+ },
"layouts": {
"LAYOUT_ortho_2x3": {
"layout": [
- {"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0},
- {"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}
+ {"matrix": [0, 0], "x": 0, "y": 0},
+ {"matrix": [0, 1], "x": 1, "y": 0},
+ {"matrix": [0, 2], "x": 2, "y": 0},
+
+ {"matrix": [1, 0], "x": 0, "y": 1},
+ {"matrix": [1, 1], "x": 1, "y": 1},
+ {"matrix": [1, 2], "x": 2, "y": 1}
]
},
"LAYOUT_ortho_2x6": {
"layout": [
- {"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":4, "y":0}, {"x":5, "y":0},
- {"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}, {"x":3, "y":1}, {"x":4, "y":1}, {"x":5, "y":1}
+ {"matrix": [0, 0], "x": 0, "y": 0},
+ {"matrix": [0, 1], "x": 1, "y": 0},
+ {"matrix": [0, 2], "x": 2, "y": 0},
+ {"matrix": [2, 2], "x": 3, "y": 0},
+ {"matrix": [2, 1], "x": 4, "y": 0},
+ {"matrix": [2, 0], "x": 5, "y": 0},
+
+ {"matrix": [1, 0], "x": 0, "y": 1},
+ {"matrix": [1, 1], "x": 1, "y": 1},
+ {"matrix": [1, 2], "x": 2, "y": 1},
+ {"matrix": [3, 2], "x": 3, "y": 1},
+ {"matrix": [3, 1], "x": 4, "y": 1},
+ {"matrix": [3, 0], "x": 5, "y": 1}
]
}
}