Migrate dip switch config to info.json - keychron (#23037)
This commit is contained in:
parent
e7b84e1cf6
commit
137938b67a
87 changed files with 117 additions and 466 deletions
|
|
@ -16,18 +16,6 @@
|
|||
|
||||
#include "quantum.h"
|
||||
|
||||
// clang-format off
|
||||
const matrix_row_t matrix_mask[] = {
|
||||
0b11111111111111111111,
|
||||
0b11111111111111111111,
|
||||
0b11111111111111111111,
|
||||
0b11111111111111111111,
|
||||
0b11111111111111111111,
|
||||
0b11111111111111101111,
|
||||
};
|
||||
|
||||
// clang-format on
|
||||
|
||||
#ifdef DIP_SWITCH_ENABLE
|
||||
|
||||
bool dip_switch_update_kb(uint8_t index, bool active) {
|
||||
|
|
|
|||
|
|
@ -16,12 +16,6 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
/* DIP switch */
|
||||
#define DIP_SWITCH_MATRIX_GRID { { 5, 4 } }
|
||||
|
||||
/* Disable DIP switch in matrix data */
|
||||
#define MATRIX_MASKED
|
||||
|
||||
/* EEPROM Driver Configuration */
|
||||
#define WEAR_LEVELING_LOGICAL_SIZE 2048
|
||||
#define WEAR_LEVELING_BACKING_SIZE (WEAR_LEVELING_LOGICAL_SIZE * 2)
|
||||
|
|
|
|||
|
|
@ -17,6 +17,9 @@
|
|||
"mousekey": true,
|
||||
"nkro": true
|
||||
},
|
||||
"dip_switch": {
|
||||
"matrix_grid": [ [5, 4] ]
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["A10", "A9", "A8", "B1", "B0", "A7", "A6", "A5", "A4", "A3", "A2", "NO_PIN", "NO_PIN", "NO_PIN", "NO_PIN", "NO_PIN", "NO_PIN", "NO_PIN", "NO_PIN", "C14"],
|
||||
"rows": ["B5", "B4", "B3", "A15", "A14", "A13"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue