Move small macropad-ish layouts to data driven (#20341)

This commit is contained in:
Ryan
2023-04-05 15:46:59 +10:00
committed by GitHub
parent 06c5c02804
commit 364c06d939
421 changed files with 2788 additions and 7128 deletions

View File

@@ -17,18 +17,6 @@
#include "quantum.h"
#define LAYOUT( \
k01, k05, \
k02, k06, k10, \
k03, k07, k11, k15, \
k08, k12, k16 \
) { \
{ k01, k05, KC_NO, KC_NO }, \
{ k02, k06, k10, KC_NO }, \
{ k03, k07, k11, k15 }, \
{ KC_NO, k08, k12, k16 } \
}
#define LED_LAYOUT( \
\
k01, k05, k02, k06, k10, k03, k07, k11, k15, k08, k12, k16) \

View File

@@ -9,18 +9,21 @@
"layouts": {
"LAYOUT": {
"layout": [
{"x":1, "y":0},
{"x":2, "y":0},
{"x":0.5, "y":1},
{"x":1.5, "y":1},
{"x":2.5, "y":1},
{"x":0, "y":2},
{"x":1, "y":2},
{"x":2, "y":2},
{"x":3, "y":2},
{"x":0.5, "y":3},
{"x":1.5, "y":3},
{"x":2.5, "y":3}
{"matrix": [0, 0], "x": 1, "y": 0},
{"matrix": [0, 1], "x": 2, "y": 0},
{"matrix": [1, 0], "x": 0.5, "y": 1},
{"matrix": [1, 1], "x": 1.5, "y": 1},
{"matrix": [1, 2], "x": 2.5, "y": 1},
{"matrix": [2, 0], "x": 0, "y": 2},
{"matrix": [2, 1], "x": 1, "y": 2},
{"matrix": [2, 2], "x": 2, "y": 2},
{"matrix": [2, 3], "x": 3, "y": 2},
{"matrix": [3, 1], "x": 0.5, "y": 3},
{"matrix": [3, 2], "x": 1.5, "y": 3},
{"matrix": [3, 3], "x": 2.5, "y": 3}
]
}
},