Migrate some dip switch config to info.json (#22437)
This commit is contained in:
parent
3a5e4253fc
commit
a0a6820c1b
42 changed files with 72 additions and 90 deletions
|
|
@ -17,8 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
|
||||
#pragma once
|
||||
|
||||
#define DIP_SWITCH_PINS { D0 }
|
||||
|
||||
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
|
||||
#define LOCKING_SUPPORT_ENABLE
|
||||
/* Locking resynchronize hack */
|
||||
|
|
|
|||
|
|
@ -13,6 +13,9 @@
|
|||
"rows": ["D3", "D2", "D4", "C6"]
|
||||
},
|
||||
"diode_direction": "COL2ROW",
|
||||
"dip_switch": {
|
||||
"pins": ["D0"]
|
||||
},
|
||||
"encoder": {
|
||||
"rotary": [
|
||||
{"pin_a": "F1", "pin_b": "F0"}
|
||||
|
|
|
|||
|
|
@ -17,6 +17,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
|
||||
#pragma once
|
||||
|
||||
#define DIP_SWITCH_MATRIX_GRID { {0,14}, {1,14}, {2,14}, {3,14} }
|
||||
|
||||
#define GPIO_INPUT_PIN_DELAY (NUC123_HCLK / 6 / 1000000L)
|
||||
|
|
|
|||
|
|
@ -12,6 +12,9 @@
|
|||
"rows": ["D11", "B4", "B5", "B6", "B7"]
|
||||
},
|
||||
"diode_direction": "COL2ROW",
|
||||
"dip_switch": {
|
||||
"matrix_grid": [ [0,14], [1,14], [2,14], [3,14] ]
|
||||
},
|
||||
"layout_aliases": {
|
||||
"LAYOUT_iso": "LAYOUT_60_iso"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -17,6 +17,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
|
||||
#pragma once
|
||||
|
||||
#define DIP_SWITCH_MATRIX_GRID { {0,14}, {1,14}, {2,14}, {3,14} }
|
||||
|
||||
#define GPIO_INPUT_PIN_DELAY (NUC123_HCLK / 6 / 1000000L)
|
||||
|
|
|
|||
|
|
@ -13,6 +13,9 @@
|
|||
"rows": ["D11", "B4", "B5", "B6", "B7"]
|
||||
},
|
||||
"diode_direction": "COL2ROW",
|
||||
"dip_switch": {
|
||||
"matrix_grid": [ [0,14], [1,14], [2,14], [3,14] ]
|
||||
},
|
||||
"layouts": {
|
||||
"LAYOUT_all": {
|
||||
"layout": [
|
||||
|
|
|
|||
|
|
@ -1,20 +0,0 @@
|
|||
/* Copyright 2020 Bratzworth
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
/* dip switch */
|
||||
#define DIP_SWITCH_PINS { C6 }
|
||||
|
|
@ -13,6 +13,9 @@
|
|||
"rows": ["B4", "D0"]
|
||||
},
|
||||
"diode_direction": "COL2ROW",
|
||||
"dip_switch": {
|
||||
"pins": ["C6"]
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"bootloader": "caterina",
|
||||
"layouts": {
|
||||
|
|
|
|||
|
|
@ -41,9 +41,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#define SPLIT_HAND_MATRIX_GRID D7,B2
|
||||
#define SPLIT_HAND_MATRIX_GRID_LOW_IS_RIGHT
|
||||
|
||||
/* Dip switch on matrix grid */
|
||||
#define DIP_SWITCH_MATRIX_GRID { {0,6}, {1,6}, {5,6}, {6,6} }
|
||||
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
#define RGB_MATRIX_LED_COUNT 50
|
||||
# define RGB_MATRIX_KEYPRESSES // reacts to keypresses
|
||||
|
|
|
|||
|
|
@ -12,7 +12,10 @@
|
|||
"driver": "ws2812",
|
||||
"sat_steps": 8,
|
||||
"val_steps": 8,
|
||||
"speed_steps": 10,
|
||||
"speed_steps": 10
|
||||
},
|
||||
"dip_switch": {
|
||||
"matrix_grid": [ [0,6], [1,6], [5,6], [6,6] ]
|
||||
},
|
||||
"encoder": {
|
||||
"rotary": [
|
||||
|
|
|
|||
|
|
@ -41,9 +41,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#define SPLIT_HAND_MATRIX_GRID D7,B2
|
||||
#define SPLIT_HAND_MATRIX_GRID_LOW_IS_RIGHT
|
||||
|
||||
/* Dip switch on matrix grid */
|
||||
#define DIP_SWITCH_MATRIX_GRID { {0,6}, {1,6}, {5,6}, {6,6} }
|
||||
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
#define RGB_MATRIX_LED_COUNT 64
|
||||
# define RGB_MATRIX_KEYPRESSES // reacts to keypresses
|
||||
|
|
|
|||
|
|
@ -14,6 +14,9 @@
|
|||
"val_steps": 8,
|
||||
"speed_steps": 10
|
||||
},
|
||||
"dip_switch": {
|
||||
"matrix_grid": [ [0,6], [1,6], [5,6], [6,6] ]
|
||||
},
|
||||
"encoder": {
|
||||
"rotary": [
|
||||
{"pin_a": "B6", "pin_b": "B5"}
|
||||
|
|
|
|||
|
|
@ -16,13 +16,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
|
||||
#define RGB_TRIGGER_ON_KEYDOWN
|
||||
|
||||
/* DIP switch */
|
||||
#define DIP_SWITCH_PINS \
|
||||
{ A9 }
|
||||
|
||||
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
|
||||
#define LOCKING_SUPPORT_ENABLE
|
||||
/* Locking resynchronize hack */
|
||||
|
|
|
|||
|
|
@ -18,6 +18,9 @@
|
|||
"rows": ["B15", "C6", "C7", "C8", "C9", "A8"]
|
||||
},
|
||||
"diode_direction": "ROW2COL",
|
||||
"dip_switch": {
|
||||
"pins": ["A9"]
|
||||
},
|
||||
"eeprom": {
|
||||
"driver": "wear_leveling",
|
||||
"wear_leveling": {
|
||||
|
|
|
|||
|
|
@ -4,10 +4,6 @@
|
|||
|
||||
#define ENCODER_DEFAULT_POS 0x3
|
||||
|
||||
/* DIP switch */
|
||||
#define DIP_SWITCH_PINS \
|
||||
{ C11 }
|
||||
|
||||
/* I2C Config for LED Driver */
|
||||
#define SNLED27351_DRIVER_COUNT 2
|
||||
#define SNLED27351_I2C_ADDRESS_1 SNLED27351_I2C_ADDRESS_GND
|
||||
|
|
|
|||
|
|
@ -34,6 +34,9 @@
|
|||
"cols": ["C1","C2","C3","A0","A1","A2","A3","A4","A5","A6","A7","C4","C5","B0","B1","B2"],
|
||||
"rows": ["B15", "C6", "C7", "C8", "C9", "B14"]
|
||||
},
|
||||
"dip_switch": {
|
||||
"pins": ["C11"]
|
||||
},
|
||||
"encoder": {
|
||||
"rotary": [
|
||||
{ "pin_a": "A8", "pin_b": "B13" }
|
||||
|
|
|
|||
|
|
@ -78,8 +78,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
// iOS device need lessthan 100
|
||||
#define USB_MAX_POWER_CONSUMPTION 100
|
||||
#endif
|
||||
|
||||
#define DIP_SWITCH_MATRIX_GRID { \
|
||||
{1, 0}, {2, 0}, {3, 0}, {3, 1}, {3, 2}, {3, 3}, \
|
||||
{7, 3}, {7, 2}, {7, 1}, {7, 0}, {6, 0}, {5, 0} \
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,6 +8,12 @@
|
|||
"rows": ["D3", "D2", "E6", "B4"]
|
||||
},
|
||||
"diode_direction": "COL2ROW",
|
||||
"dip_switch": {
|
||||
"matrix_grid": [
|
||||
[1, 0], [2, 0], [3, 0], [3, 1], [3, 2], [3, 3],
|
||||
[7, 3], [7, 2], [7, 1], [7, 0], [6, 0], [5, 0]
|
||||
]
|
||||
},
|
||||
"backlight": {
|
||||
"pin": "B6",
|
||||
"levels": 5
|
||||
|
|
|
|||
|
|
@ -3,10 +3,6 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
|
||||
/* allows the "key" button on the blackpill to toggle caps lock for user testing before soldering */
|
||||
#define DIP_SWITCH_PINS { A0 }
|
||||
|
||||
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
|
||||
#define LOCKING_SUPPORT_ENABLE
|
||||
/* Locking resynchronize hack */
|
||||
|
|
|
|||
|
|
@ -14,6 +14,9 @@
|
|||
"rows": ["B12", "B10", "B13", "B1", "B14"]
|
||||
},
|
||||
"diode_direction": "COL2ROW",
|
||||
"dip_switch": {
|
||||
"pins": ["A0"]
|
||||
},
|
||||
"indicators": {
|
||||
"caps_lock": "C13",
|
||||
"on_state": 0
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue