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/q3 | |
parent | e7b84e1cf6d864b1df41e7a81c576baa9d7ca30a (diff) |
Migrate dip switch config to info.json - keychron (#23037)
Diffstat (limited to 'keyboards/keychron/q3')
-rw-r--r-- | keyboards/keychron/q3/config.h | 6 | ||||
-rw-r--r-- | keyboards/keychron/q3/info.json | 3 | ||||
-rw-r--r-- | keyboards/keychron/q3/q3.c | 13 |
3 files changed, 3 insertions, 19 deletions
diff --git a/keyboards/keychron/q3/config.h b/keyboards/keychron/q3/config.h index 6af0afd18f..176e14a5e2 100644 --- a/keyboards/keychron/q3/config.h +++ b/keyboards/keychron/q3/config.h @@ -29,12 +29,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 - /* Encoder Configuration*/ #define ENCODER_DEFAULT_POS 0x3 diff --git a/keyboards/keychron/q3/info.json b/keyboards/keychron/q3/info.json index c08d73f26a..6d1bb49d6e 100644 --- a/keyboards/keychron/q3/info.json +++ b/keyboards/keychron/q3/info.json @@ -3,6 +3,9 @@ "maintainer": "lalalademaxiya1", "bootloader": "stm32-dfu", "diode_direction": "ROW2COL", + "dip_switch": { + "matrix_grid": [ [5, 4] ] + }, "eeprom": { "wear_leveling": { "backing_size": 4096 diff --git a/keyboards/keychron/q3/q3.c b/keyboards/keychron/q3/q3.c index 2bf8bf08a0..846b58d4a7 100644 --- a/keyboards/keychron/q3/q3.c +++ b/keyboards/keychron/q3/q3.c @@ -17,19 +17,6 @@ #include "quantum.h" #include "rgb_matrix.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) { |