Move layouts for direct_pins boards to data driven (#19872)

This commit is contained in:
Ryan authored and GitHub committed 2023-02-19 18:55:12 +11:00
1 parent 2222836f09
commit e837a32b2b
231 files changed
+965 -3523

No files matched your search

+8 -8
View File
@@ -22,15 +22,15 @@
"layouts": {
"LAYOUT_ortho_2x4": {
"layout": [
{"x": 0, "y": 0},
{"x": 1, "y": 0},
{"x": 2, "y": 0},
{"x": 3, "y": 0},
{"x": 0, "y": 0, "matrix": [0, 0]},
{"x": 1, "y": 0, "matrix": [0, 1]},
{"x": 2, "y": 0, "matrix": [0, 2]},
{"x": 3, "y": 0, "matrix": [0, 3]},
{"x": 0, "y": 1},
{"x": 1, "y": 1},
{"x": 2, "y": 1},
{"x": 3, "y": 1}
{"x": 0, "y": 1, "matrix": [1, 0]},
{"x": 1, "y": 1, "matrix": [1, 1]},
{"x": 2, "y": 1, "matrix": [1, 2]},
{"x": 3, "y": 1, "matrix": [1, 3]}
]
}
}
+1 -1
View File
@@ -3,7 +3,7 @@
* SPDX-License-Identifier: GPL-2.0+
*/
#include "macro3.h"
#include "quantum.h"
#ifdef ENCODER_ENABLE
bool encoder_update_kb(uint8_t index, bool clockwise) {
-16
View File
@@ -1,16 +0,0 @@
/* Copyright 2020 David Philip Barr <@davidphilipbarr>
* Copyright 2021 @filterpaper
* SPDX-License-Identifier: GPL-2.0+
*/
#include "quantum.h"
#define LAYOUT_ortho_2x4( \
K00, K01, K02, K03, \
K10, K11, K12, K13 \
) \
{ \
{ K00, K01, K02, K03 }, \
{ K10, K11, K12, K13 } \
}