Migrate dip switch config to info.json - keychron (#23037)

This commit is contained in:
Joel Challis 2024-02-09 06:56:13 +00:00 committed by GitHub
parent e7b84e1cf6
commit 137938b67a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
87 changed files with 117 additions and 466 deletions

View file

@ -44,12 +44,6 @@
#define SNLED27351_PHASE_CHANNEL SNLED27351_SCAN_PHASE_9_CHANNEL
#define SNLED27351_CURRENT_TUNE { 0x98, 0x98, 0x4A, 0x98, 0x98, 0x4A, 0x98, 0x98, 0x4A, 0x98, 0x98, 0x4A }
/* DIP switch */
#define DIP_SWITCH_MATRIX_GRID { {5,5} }
/* Disable DIP switch in matrix data */
#define MATRIX_MASKED
/* Disable RGB lighting when PC is in suspend */
#define RGB_MATRIX_SLEEP

View file

@ -0,0 +1,5 @@
{
"dip_switch": {
"matrix_grid": [ [5, 5] ]
}
}

View file

@ -16,15 +16,6 @@
#include "quantum.h"
const matrix_row_t matrix_mask[] = {
0b1111111111111111,
0b1111111111111111,
0b1111111111111111,
0b1111111111111111,
0b1111111111111111,
0b1111111111011111,
};
#ifdef DIP_SWITCH_ENABLE
bool dip_switch_update_kb(uint8_t index, bool active) {