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/q9_plus | |
parent | e7b84e1cf6d864b1df41e7a81c576baa9d7ca30a (diff) |
Migrate dip switch config to info.json - keychron (#23037)
Diffstat (limited to 'keyboards/keychron/q9_plus')
-rwxr-xr-x | keyboards/keychron/q9_plus/config.h | 6 | ||||
-rwxr-xr-x | keyboards/keychron/q9_plus/info.json | 3 | ||||
-rwxr-xr-x | keyboards/keychron/q9_plus/q9_plus.c | 7 |
3 files changed, 3 insertions, 13 deletions
diff --git a/keyboards/keychron/q9_plus/config.h b/keyboards/keychron/q9_plus/config.h index cbd3c8b11b..16a274217d 100755 --- a/keyboards/keychron/q9_plus/config.h +++ b/keyboards/keychron/q9_plus/config.h @@ -16,12 +16,6 @@ #pragma once -/* Disable DIP switch in matrix data */ -#define MATRIX_MASKED - -/* DIP switch */ -#define DIP_SWITCH_MATRIX_GRID {{ 3, 4 }} - /* RGB Matrix Driver Configuration */ #define SNLED27351_I2C_ADDRESS_1 SNLED27351_I2C_ADDRESS_GND diff --git a/keyboards/keychron/q9_plus/info.json b/keyboards/keychron/q9_plus/info.json index 9f8703de37..0abc5b591e 100755 --- a/keyboards/keychron/q9_plus/info.json +++ b/keyboards/keychron/q9_plus/info.json @@ -19,6 +19,9 @@ "nkro": true, "rgb_matrix": true }, + "dip_switch": { + "matrix_grid": [ [3, 4] ] + }, "matrix_pins": { "cols": ["A10", "A9", "A8", "B1", "B0", "A7", "A6", "A5", "A4", "A3", "A2", "A1", "A0", "C15", "C14"], "rows": ["B3", "A15", "A14", "A13"] diff --git a/keyboards/keychron/q9_plus/q9_plus.c b/keyboards/keychron/q9_plus/q9_plus.c index 848117d323..77fd5f3cb0 100755 --- a/keyboards/keychron/q9_plus/q9_plus.c +++ b/keyboards/keychron/q9_plus/q9_plus.c @@ -16,13 +16,6 @@ #include "quantum.h" -const matrix_row_t matrix_mask[] = { - 0b111111111111111, - 0b111111111111111, - 0b111111111111111, - 0b111111111101111, -}; - #ifdef DIP_SWITCH_ENABLE bool dip_switch_update_kb(uint8_t index, bool active) { if (!dip_switch_update_user(index, active)) { |