Migrate DIRECT_PINS to data driven (#19826)

This commit is contained in:
Ryan
2023-02-14 18:39:41 +11:00
committed by GitHub
parent 0b796b91a3
commit 2cdf99ae95
158 changed files with 560 additions and 1197 deletions

View File

@@ -17,21 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
/* key matrix size */
#define MATRIX_ROWS 5
#define MATRIX_COLS 4
#define DIRECT_PINS { \
{ B2, B10, B3, B4 }, \
{ B1, B11, A15, B5 }, \
{ B0, A5, B7, F0 }, \
{ A7, A6, B8, B6 }, \
{ A4, A3, B9, F1 } \
}
/* COL2ROW, ROW2COL*/
#define DIODE_DIRECTION COL2ROW
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */

View File

@@ -10,6 +10,15 @@
},
"processor": "STM32F072",
"bootloader": "stm32-dfu",
"matrix_pins": {
"direct": [
["B2", "B10", "B3", "B4"],
["B1", "B11", "A15", "B5"],
["B0", "A5", "B7", "F0"],
["A7", "A6", "B8", "B6"],
["A4", "A3", "B9", "F1"]
]
},
"community_layouts": ["ortho_5x4", "numpad_5x4"],
"layouts": {
"LAYOUT_numpad_5x4": {