diff options
author | Joel Challis <git@zvecr.com> | 2024-02-09 06:56:13 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-09 06:56:13 +0000 |
commit | 137938b67afbf35fd34f2e5cbe3c5c6367a1d0cc (patch) | |
tree | 9bde863a119f5e8c84840b34c839011d9403cfb6 /keyboards/keychron/q10 | |
parent | e7b84e1cf6d864b1df41e7a81c576baa9d7ca30a (diff) |
Migrate dip switch config to info.json - keychron (#23037)
Diffstat (limited to 'keyboards/keychron/q10')
-rw-r--r-- | keyboards/keychron/q10/config.h | 6 | ||||
-rw-r--r-- | keyboards/keychron/q10/info.json | 5 | ||||
-rw-r--r-- | keyboards/keychron/q10/q10.c | 9 |
3 files changed, 5 insertions, 15 deletions
diff --git a/keyboards/keychron/q10/config.h b/keyboards/keychron/q10/config.h index e999515abc..0a19cc008c 100644 --- a/keyboards/keychron/q10/config.h +++ b/keyboards/keychron/q10/config.h @@ -44,12 +44,6 @@ #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 diff --git a/keyboards/keychron/q10/info.json b/keyboards/keychron/q10/info.json new file mode 100644 index 0000000000..98a376bd20 --- /dev/null +++ b/keyboards/keychron/q10/info.json @@ -0,0 +1,5 @@ +{ + "dip_switch": { + "matrix_grid": [ [5, 5] ] + } +} diff --git a/keyboards/keychron/q10/q10.c b/keyboards/keychron/q10/q10.c index 455a2a25f2..754b148175 100644 --- a/keyboards/keychron/q10/q10.c +++ b/keyboards/keychron/q10/q10.c @@ -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) { |