Move ortho & numpad layouts to data driven (#20183)

Co-authored-by: Nick Brassel <nick@tzarc.org>
This commit is contained in:
Ryan
2023-03-29 15:54:34 +11:00
committed by GitHub
parent 06664e8a94
commit 4869b8061c
589 changed files with 19002 additions and 25368 deletions

View File

@@ -19,32 +19,32 @@
"layouts": {
"LAYOUT_numpad_6x4": {
"layout": [
{"label":"ESC", "x":0, "y":0},
{"label":"F2", "x":1, "y":0},
{"label":"\uff1d", "x":2, "y":0},
{"label":"Del", "x":3, "y":0},
{"matrix": [0, 5], "x": 0, "y": 0},
{"matrix": [1, 5], "x": 1, "y": 0},
{"matrix": [2, 5], "x": 2, "y": 0},
{"matrix": [3, 5], "x": 3, "y": 0},
{"label":"Num Lock", "x":0, "y":1.25},
{"label":"/", "x":1, "y":1.25},
{"label":"*", "x":2, "y":1.25},
{"label":"-", "x":3, "y":1.25},
{"matrix": [0, 4], "x": 0, "y": 1.25},
{"matrix": [1, 4], "x": 1, "y": 1.25},
{"matrix": [2, 4], "x": 2, "y": 1.25},
{"matrix": [3, 4], "x": 3, "y": 1.25},
{"label":"7", "x":0, "y":2.25},
{"label":"8", "x":1, "y":2.25},
{"label":"9", "x":2, "y":2.25},
{"matrix": [0, 3], "x": 0, "y": 2.25},
{"matrix": [1, 3], "x": 1, "y": 2.25},
{"matrix": [2, 3], "x": 2, "y": 2.25},
{"label":"4", "x":0, "y":3.25},
{"label":"5", "x":1, "y":3.25},
{"label":"6", "x":2, "y":3.25},
{"label":"+", "x":3, "y":2.25, "h":2},
{"matrix": [0, 2], "x": 0, "y": 3.25},
{"matrix": [1, 2], "x": 1, "y": 3.25},
{"matrix": [2, 2], "x": 2, "y": 3.25},
{"matrix": [3, 2], "x": 3, "y": 2.25, "h": 2},
{"label":"1", "x":0, "y":4.25},
{"label":"2", "x":1, "y":4.25},
{"label":"3", "x":2, "y":4.25},
{"matrix": [0, 1], "x": 0, "y": 4.25},
{"matrix": [1, 1], "x": 1, "y": 4.25},
{"matrix": [2, 1], "x": 2, "y": 4.25},
{"label":"0", "x":0, "y":5.25, "w":2},
{"label":".", "x":2, "y":5.25},
{"label":"Enter", "x":3, "y":4.25, "h":2}
{"matrix": [0, 0], "x": 0, "y": 5.25, "w": 2},
{"matrix": [2, 0], "x": 2, "y": 5.25},
{"matrix": [3, 0], "x": 3, "y": 4.25, "h": 2}
]
}
}

View File

@@ -1,4 +1,4 @@
#include "rev1.h"
#include "quantum.h"
#ifdef RGB_MATRIX_ENABLE
led_config_t g_led_config = { {

View File

@@ -1,18 +0,0 @@
#pragma once
#include "quantum.h"
#define LAYOUT_numpad_6x4( \
L05, L15, L25, L35, \
L04, L14, L24, L34, \
L03, L13, L23, \
L02, L12, L22, L32, \
L01, L11, L21, \
L00, L20, L30 \
) \
{ \
{ L00, L01, L02, L03, L04, L05 }, \
{KC_NO, L11, L12, L13, L14, L15 }, \
{ L20, L21, L22, L23, L24, L25 }, \
{ L30,KC_NO, L32,KC_NO, L34, L35 } \
}