Migrate some dip switch config to info.json (#22437)

This commit is contained in:
Joel Challis 2023-11-22 21:33:59 +00:00 committed by GitHub
parent 3a5e4253fc
commit a0a6820c1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
42 changed files with 72 additions and 90 deletions

View file

@ -26,6 +26,9 @@
"cols": ["H0", "H1", "H2", "H3", "H4", "H5", "H6", "H7", "H8", "H9", "H10", "H11", "H12", "H13", "H14", "H15"],
"rows": ["A7", "A6", "A5", "A4", "A3", "A2"]
},
"dip_switch": {
"pins": ["B0", "B1", "B8", "B12"]
},
"processor": "STM32F072",
"rgb_matrix": {
"driver": "ws2812",

View file

@ -16,20 +16,7 @@
#pragma once
/*
* Keyboard Matrix Assignments
*
* Change this to how you wired your keyboard
* COLS: AVR pins used for columns, left to right
* ROWS: AVR pins used for rows, top to bottom
* DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
* ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
*
*/
/* Dip Switch */
#define POWER_SWITCH_PIN B0
#define DIP_SWITCH_PINS { B0, B1, B8, B12 }
/* 16 with dummy columns for shift registers */
#define SHR_SERIES_NUM 2