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
|
@ -27,15 +27,6 @@
|
|||
#define I2C1_TIMINGR_SCLH 15U
|
||||
#define I2C1_TIMINGR_SCLL 51U
|
||||
|
||||
/* DIP switch */
|
||||
#define DIP_SWITCH_MATRIX_GRID \
|
||||
{ \
|
||||
{ 5, 4 } \
|
||||
}
|
||||
|
||||
/* Disable DIP switch in matrix data */
|
||||
#define MATRIX_MASKED
|
||||
|
||||
/* Disable RGB lighting when PC is in suspend */
|
||||
#define RGB_MATRIX_SLEEP
|
||||
|
||||
|
|
|
@ -18,6 +18,9 @@
|
|||
"rgb_matrix": true,
|
||||
"dip_switch": true
|
||||
},
|
||||
"dip_switch": {
|
||||
"matrix_grid": [ [5, 4] ]
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": ["C14", "C15", "A0", "A1", "A2", "A3", "A4", "A5", null, null, null, null, null, null, null, null],
|
||||
"rows": ["B5", "B4", "B3", "A15", "A14", "A13"],
|
||||
|
|
|
@ -16,15 +16,6 @@
|
|||
|
||||
#include "quantum.h"
|
||||
|
||||
const matrix_row_t matrix_mask[] = {
|
||||
0b1111111111111111,
|
||||
0b1111111111111111,
|
||||
0b1111111111111111,
|
||||
0b1111111111111111,
|
||||
0b1111111111111111,
|
||||
0b1111111111101111,
|
||||
};
|
||||
|
||||
#ifdef DIP_SWITCH_ENABLE
|
||||
bool dip_switch_update_kb(uint8_t index, bool active) {
|
||||
if (!dip_switch_update_user(index, active)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue