Migrate dip switch config to info.json - keychron (#23037)

This commit is contained in:
Joel Challis 2024-02-09 06:56:13 +00:00 committed by GitHub
parent e7b84e1cf6
commit 137938b67a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
87 changed files with 117 additions and 466 deletions

View file

@ -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

View file

@ -22,6 +22,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"]

View file

@ -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) {