Move small macropad-ish layouts to data driven (#20341)
This commit is contained in:
@@ -26,23 +26,3 @@ extern i2c_status_t mcp23018_status;
|
||||
|
||||
void init_ergodox(void);
|
||||
uint8_t init_mcp23018(void);
|
||||
|
||||
/* ---------- LEFT HAND ----------- ---------- RIGHT HAND ---------- */
|
||||
#define LAYOUT( \
|
||||
L00,L01,L02,L03,L04,L05, R00,R01,R02,R03,R04,R05) \
|
||||
\
|
||||
/* matrix positions */ \
|
||||
{ \
|
||||
{R00}, \
|
||||
{R01}, \
|
||||
{R02}, \
|
||||
{R03}, \
|
||||
{R04}, \
|
||||
{R05}, \
|
||||
{L05}, \
|
||||
{L04}, \
|
||||
{L03}, \
|
||||
{L02}, \
|
||||
{L01}, \
|
||||
{L00}, \
|
||||
}
|
||||
|
@@ -13,19 +13,19 @@
|
||||
"layouts": {
|
||||
"LAYOUT": {
|
||||
"layout": [
|
||||
{"x": 0, "y": 1},
|
||||
{"x": 1, "y": 0.5},
|
||||
{"x": 2, "y": 0.25},
|
||||
{"x": 3, "y": 0},
|
||||
{"x": 4, "y": 0.75},
|
||||
{"x": 5, "y": 1.5},
|
||||
{"matrix": [11, 0], "x": 0, "y": 1},
|
||||
{"matrix": [10, 0], "x": 1, "y": 0.5},
|
||||
{"matrix": [9, 0], "x": 2, "y": 0.25},
|
||||
{"matrix": [8, 0], "x": 3, "y": 0},
|
||||
{"matrix": [7, 0], "x": 4, "y": 0.75},
|
||||
{"matrix": [6, 0], "x": 5, "y": 1.5},
|
||||
|
||||
{"x": 7, "y": 1.5},
|
||||
{"x": 8, "y": 0.75},
|
||||
{"x": 9, "y": 0},
|
||||
{"x": 10, "y": 0.25},
|
||||
{"x": 11, "y": 0.5},
|
||||
{"x": 12, "y": 1}
|
||||
{"matrix": [0, 0], "x": 7, "y": 1.5},
|
||||
{"matrix": [1, 0], "x": 8, "y": 0.75},
|
||||
{"matrix": [2, 0], "x": 9, "y": 0},
|
||||
{"matrix": [3, 0], "x": 10, "y": 0.25},
|
||||
{"matrix": [4, 0], "x": 11, "y": 0.5},
|
||||
{"matrix": [5, 0], "x": 12, "y": 1}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user