diff options
author | Joel Challis <[email protected]> | 2024-02-09 06:56:13 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2024-02-09 06:56:13 +0000 |
commit | 137938b67afbf35fd34f2e5cbe3c5c6367a1d0cc (patch) | |
tree | 9bde863a119f5e8c84840b34c839011d9403cfb6 /keyboards/keychron/v3 | |
parent | e7b84e1cf6d864b1df41e7a81c576baa9d7ca30a (diff) | |
download | qmk_firmware-137938b67afbf35fd34f2e5cbe3c5c6367a1d0cc.tar.gz qmk_firmware-137938b67afbf35fd34f2e5cbe3c5c6367a1d0cc.zip |
Migrate dip switch config to info.json - keychron (#23037)
Diffstat (limited to 'keyboards/keychron/v3')
-rw-r--r-- | keyboards/keychron/v3/config.h | 6 | ||||
-rw-r--r-- | keyboards/keychron/v3/info.json | 5 | ||||
-rw-r--r-- | keyboards/keychron/v3/v3.c | 13 |
3 files changed, 5 insertions, 19 deletions
diff --git a/keyboards/keychron/v3/config.h b/keyboards/keychron/v3/config.h index 9532062aaa..6fe3e4dd97 100644 --- a/keyboards/keychron/v3/config.h +++ b/keyboards/keychron/v3/config.h @@ -32,12 +32,6 @@ #define SNLED27351_PHASE_CHANNEL SNLED27351_SCAN_PHASE_9_CHANNEL -/* DIP switch */ -#define DIP_SWITCH_MATRIX_GRID { {5, 4} } - -/* Disable DIP switch in matrix data */ -#define MATRIX_MASKED - /* turn off effects when suspended */ #define RGB_MATRIX_SLEEP diff --git a/keyboards/keychron/v3/info.json b/keyboards/keychron/v3/info.json new file mode 100644 index 0000000000..7019c8755b --- /dev/null +++ b/keyboards/keychron/v3/info.json @@ -0,0 +1,5 @@ +{ + "dip_switch": { + "matrix_grid": [ [5, 4] ] + } +} diff --git a/keyboards/keychron/v3/v3.c b/keyboards/keychron/v3/v3.c index 17ea8f0e97..4452556ca6 100644 --- a/keyboards/keychron/v3/v3.c +++ b/keyboards/keychron/v3/v3.c @@ -16,19 +16,6 @@ #include "quantum.h" -// clang-format off - -const matrix_row_t matrix_mask[] = { - 0b1111111111111111, - 0b1111111111111111, - 0b1111111111111111, - 0b1111111111111111, - 0b1111111111111111, - 0b1111111111101111, -}; - -// clang-format on - #ifdef DIP_SWITCH_ENABLE bool dip_switch_update_kb(uint8_t index, bool active) { |