forked from mirror/qmk_firmware
Migrate dip switch config to info.json - keychron (#23037)
This commit is contained in:
@@ -32,12 +32,6 @@
|
||||
|
||||
#define SNLED27351_PHASE_CHANNEL SNLED27351_SCAN_PHASE_9_CHANNEL
|
||||
|
||||
/* Disable DIP switch in matrix data */
|
||||
#define MATRIX_MASKED
|
||||
|
||||
/* DIP switch */
|
||||
#define DIP_SWITCH_MATRIX_GRID { {4,4} }
|
||||
|
||||
/* turn off effects when suspended */
|
||||
#define RGB_MATRIX_SLEEP
|
||||
|
||||
|
||||
5
keyboards/keychron/v2/info.json
Normal file
5
keyboards/keychron/v2/info.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"dip_switch": {
|
||||
"matrix_grid": [ [4, 4] ]
|
||||
}
|
||||
}
|
||||
@@ -16,14 +16,6 @@
|
||||
|
||||
#include "quantum.h"
|
||||
|
||||
const matrix_row_t matrix_mask[] = {
|
||||
0b111111111111111,
|
||||
0b111111111111111,
|
||||
0b111111111111111,
|
||||
0b111111111111111,
|
||||
0b111111111101111,
|
||||
};
|
||||
|
||||
#ifdef DIP_SWITCH_ENABLE
|
||||
|
||||
bool dip_switch_update_kb(uint8_t index, bool active) {
|
||||
|
||||
Reference in New Issue
Block a user