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/q7 | |
parent | e7b84e1cf6d864b1df41e7a81c576baa9d7ca30a (diff) |
Migrate dip switch config to info.json - keychron (#23037)
Diffstat (limited to 'keyboards/keychron/q7')
-rw-r--r-- | keyboards/keychron/q7/config.h | 6 | ||||
-rw-r--r-- | keyboards/keychron/q7/info.json | 3 | ||||
-rw-r--r-- | keyboards/keychron/q7/q7.c | 8 |
3 files changed, 3 insertions, 14 deletions
diff --git a/keyboards/keychron/q7/config.h b/keyboards/keychron/q7/config.h index 00f09dd1bf..4a2a6af9e3 100644 --- a/keyboards/keychron/q7/config.h +++ b/keyboards/keychron/q7/config.h @@ -30,9 +30,3 @@ #define SNLED27351_PHASE_CHANNEL SNLED27351_SCAN_PHASE_9_CHANNEL #define SNLED27351_CURRENT_TUNE \ { 0xF8, 0xF8, 0x80, 0xF8, 0xF8, 0x80, 0xF8, 0xF8, 0x80, 0xF8, 0xF8, 0x80 } - -/* DIP switch */ -#define DIP_SWITCH_MATRIX_GRID { {4,4} } - -/* Disable DIP switch in matrix data */ -#define MATRIX_MASKED
\ No newline at end of file diff --git a/keyboards/keychron/q7/info.json b/keyboards/keychron/q7/info.json index d6d0c5d1fc..6b8a94ce99 100644 --- a/keyboards/keychron/q7/info.json +++ b/keyboards/keychron/q7/info.json @@ -4,6 +4,9 @@ "maintainer": "lalalademaxiya1", "bootloader": "stm32-dfu", "diode_direction": "ROW2COL", + "dip_switch": { + "matrix_grid": [ [4, 4] ] + }, "dynamic_keymap": { "layer_count": 5 }, diff --git a/keyboards/keychron/q7/q7.c b/keyboards/keychron/q7/q7.c index abd4ac11f0..d020f6ab43 100644 --- a/keyboards/keychron/q7/q7.c +++ b/keyboards/keychron/q7/q7.c @@ -16,14 +16,6 @@ #include "quantum.h" -const matrix_row_t matrix_mask[] = { - 0b1111111111111111, - 0b1111111111111111, - 0b1111111111111111, - 0b1111111111111111, - 0b1111111111101111, -}; - #ifdef DIP_SWITCH_ENABLE bool dip_switch_update_kb(uint8_t index, bool active) { |