1
0
Fork 0

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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
421 changed files with 2788 additions and 7128 deletions

View file

@ -27,19 +27,18 @@
"layouts": {
"LAYOUT": {
"layout": [
{"label": "k00", "x": 0, "y": 0},
{"label": "k01", "x": 1, "y": 0},
{"label": "k02", "x": 2, "y": 0},
{"label": "k03", "x": 3, "y": 0},
{"label": "k04", "x": 4, "y": 0},
{"label": "k05", "x": 5, "y": 0},
{"label": "k06", "x": 6, "y": 0},
{"label": "k07", "x": 7, "y": 0},
{"label": "k08", "x": 8, "y": 0},
{"label": "k09", "x": 9, "y": 0},
{"label": "k0a", "x": 10, "y": 0},
{"label": "k0b", "x": 11, "y": 0}
{"label": "k00", "matrix": [0, 0], "x": 0, "y": 0},
{"label": "k01", "matrix": [0, 1], "x": 1, "y": 0},
{"label": "k02", "matrix": [0, 2], "x": 2, "y": 0},
{"label": "k03", "matrix": [0, 3], "x": 3, "y": 0},
{"label": "k04", "matrix": [0, 4], "x": 4, "y": 0},
{"label": "k05", "matrix": [0, 5], "x": 5, "y": 0},
{"label": "k06", "matrix": [0, 6], "x": 6, "y": 0},
{"label": "k07", "matrix": [0, 7], "x": 7, "y": 0},
{"label": "k08", "matrix": [0, 8], "x": 8, "y": 0},
{"label": "k09", "matrix": [0, 9], "x": 9, "y": 0},
{"label": "k0a", "matrix": [0, 10], "x": 10, "y": 0},
{"label": "k0b", "matrix": [0, 11], "x": 11, "y": 0}
]
}
}

View file

@ -18,17 +18,3 @@
#include "quantum.h"
#include "rgb_functions.h"
/* This is a shortcut to help you visually see your layout.
*
* The first section contains all of the arguments representing the physical
* layout of the board and position of the keys.
*
* The second converts the arguments into a two-dimensional array which
* represents the switch matrix.
*/
#define LAYOUT( \
k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b \
) { \
{ k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b } \
}