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
|
@ -30,9 +30,3 @@
|
|||
#define SNLED27351_PHASE_CHANNEL SNLED27351_SCAN_PHASE_9_CHANNEL
|
||||
#define SNLED27351_CURRENT_TUNE \
|
||||
{ 0xF8, 0xF8, 0x80, 0xF8, 0xF8, 0x80, 0xF8, 0xF8, 0x80, 0xF8, 0xF8, 0x80 }
|
||||
|
||||
/* DIP switch */
|
||||
#define DIP_SWITCH_MATRIX_GRID { {4,4} }
|
||||
|
||||
/* Disable DIP switch in matrix data */
|
||||
#define MATRIX_MASKED
|
|
@ -4,6 +4,9 @@
|
|||
"maintainer": "lalalademaxiya1",
|
||||
"bootloader": "stm32-dfu",
|
||||
"diode_direction": "ROW2COL",
|
||||
"dip_switch": {
|
||||
"matrix_grid": [ [4, 4] ]
|
||||
},
|
||||
"dynamic_keymap": {
|
||||
"layer_count": 5
|
||||
},
|
||||
|
|
|
@ -16,14 +16,6 @@
|
|||
|
||||
#include "quantum.h"
|
||||
|
||||
const matrix_row_t matrix_mask[] = {
|
||||
0b1111111111111111,
|
||||
0b1111111111111111,
|
||||
0b1111111111111111,
|
||||
0b1111111111111111,
|
||||
0b1111111111101111,
|
||||
};
|
||||
|
||||
#ifdef DIP_SWITCH_ENABLE
|
||||
|
||||
bool dip_switch_update_kb(uint8_t index, bool active) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue