summaryrefslogtreecommitdiff
path: root/keyboards/keychron/v8
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2024-02-09 06:56:13 +0000
committerGitHub <noreply@github.com>2024-02-09 06:56:13 +0000
commit137938b67afbf35fd34f2e5cbe3c5c6367a1d0cc (patch)
tree9bde863a119f5e8c84840b34c839011d9403cfb6 /keyboards/keychron/v8
parente7b84e1cf6d864b1df41e7a81c576baa9d7ca30a (diff)
Migrate dip switch config to info.json - keychron (#23037)
Diffstat (limited to 'keyboards/keychron/v8')
-rw-r--r--keyboards/keychron/v8/config.h6
-rw-r--r--keyboards/keychron/v8/info.json5
-rw-r--r--keyboards/keychron/v8/v8.c8
3 files changed, 5 insertions, 14 deletions
diff --git a/keyboards/keychron/v8/config.h b/keyboards/keychron/v8/config.h
index c9db5c0755..7b139dbd54 100644
--- a/keyboards/keychron/v8/config.h
+++ b/keyboards/keychron/v8/config.h
@@ -33,12 +33,6 @@
#define SNLED27351_PHASE_CHANNEL SNLED27351_SCAN_PHASE_9_CHANNEL
#define SNLED27351_CURRENT_TUNE { 0xC4, 0xC4, 0x60, 0xC4, 0xC4, 0x60, 0xC4, 0xC4, 0x60, 0xC4, 0xC4, 0x60 }
-/* DIP switch */
-#define DIP_SWITCH_MATRIX_GRID { {4, 4} }
-
-/* Disable DIP switch in matrix data */
-#define MATRIX_MASKED
-
/* Turn off effects when suspended */
#define RGB_MATRIX_SLEEP
diff --git a/keyboards/keychron/v8/info.json b/keyboards/keychron/v8/info.json
new file mode 100644
index 0000000000..5084aad927
--- /dev/null
+++ b/keyboards/keychron/v8/info.json
@@ -0,0 +1,5 @@
+{
+ "dip_switch": {
+ "matrix_grid": [ [4, 4] ]
+ }
+}
diff --git a/keyboards/keychron/v8/v8.c b/keyboards/keychron/v8/v8.c
index 38d3cada17..5cc6c0782c 100644
--- a/keyboards/keychron/v8/v8.c
+++ b/keyboards/keychron/v8/v8.c
@@ -16,14 +16,6 @@
#include "quantum.h"
-const matrix_row_t matrix_mask[] = {
- 0b111111111111111,
- 0b111111111111111,
- 0b111111111111111,
- 0b111111111111111,
- 0b111111111101111,
-};
-
#ifdef DIP_SWITCH_ENABLE
bool dip_switch_update_kb(uint8_t index, bool active) {