Move Bootmagic config to data driven (#19860)

This commit is contained in:
Ryan
2023-02-17 08:49:49 +11:00
committed by GitHub
parent 7fad94ba2d
commit d784f78bd0
281 changed files with 458 additions and 700 deletions

View File

@@ -93,8 +93,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
//#define TAPPING_TERM 150
//#define IGNORE_MOD_TAP_INTERRUPT
//#define QUICK_TAP_TERM 0
#define BOOTMAGIC_LITE_ROW 0
#define BOOTMAGIC_LITE_COLUMN 6
#define BOOTMAGIC_LITE_ROW_RIGHT 5
#define BOOTMAGIC_LITE_COLUMN_RIGHT 0

View File

@@ -8,6 +8,14 @@
"pid": "0x0001",
"device_version": "0.0.1"
},
"bootmagic": {
"matrix": [0, 6]
},
"split": {
"bootmagic": {
"matrix": [5, 0]
}
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"layouts": {

View File

@@ -32,12 +32,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define DIODE_DIRECTION COL2ROW
#define BOOTMAGIC_LITE_ROW 0
#define BOOTMAGIC_LITE_COLUMN 0
#define BOOTMAGIC_LITE_ROW_RIGHT 6
#define BOOTMAGIC_LITE_COLUMN_RIGHT 5
// WS2812 RGB LED strip input and number of LEDs
// #define RGB_DI_PIN D3
// #define RGBLED_NUM 12

View File

@@ -8,6 +8,11 @@
"pid": "0x3536",
"device_version": "0.0.3"
},
"split": {
"bootmagic": {
"matrix": [6, 5]
}
},
"processor": "atmega32u4",
"bootloader": "caterina",
"layouts": {

View File

@@ -30,12 +30,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define DIODE_DIRECTION COL2ROW
#define BOOTMAGIC_LITE_ROW 0
#define BOOTMAGIC_LITE_COLUMN 0
#define BOOTMAGIC_LITE_ROW_RIGHT 6
#define BOOTMAGIC_LITE_COLUMN_RIGHT 5
// WS2812 RGB LED strip input and number of LEDs
// #define RGB_DI_PIN D3
// #define RGBLED_NUM 12

View File

@@ -8,6 +8,11 @@
"pid": "0x3536",
"device_version": "0.0.2"
},
"split": {
"bootmagic": {
"matrix": [6, 5]
}
},
"processor": "atmega32u4",
"bootloader": "caterina",
"layouts": {

View File

@@ -24,11 +24,6 @@
/* COL2ROW, ROW2COL */
#define DIODE_DIRECTION COL2ROW
#define BOOTMAGIC_LITE_ROW 0
#define BOOTMAGIC_LITE_COLUMN 0
#define BOOTMAGIC_LITE_ROW_RIGHT 7
#define BOOTMAGIC_LITE_COLUMN_RIGHT 0
// in col2row col is input, and row is output
// #define SPLIT_HAND_MATRIX_GRID A10, A4
// 68kohm

View File

@@ -1,4 +1,9 @@
{
"split": {
"bootmagic": {
"matrix": [7, 0]
}
},
"processor": "STM32F411",
"bootloader": "stm32-dfu",
"board": "BLACKPILL_STM32_F411"

View File

@@ -1,24 +0,0 @@
// Copyright 2022 Commander1024 (@Commander1024)
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
/* configure bootmagic lite trigger to ESC */
#define BOOTMAGIC_LITE_ROW 5
#define BOOTMAGIC_LITE_COLUMN 16
/*
* Feature disable options
* These options are also useful to firmware size reduction.
*/
/* disable debug print */
//#define NO_DEBUG
/* disable print */
//#define NO_PRINT
/* disable action features */
//#define NO_ACTION_LAYER
//#define NO_ACTION_TAPPING
//#define NO_ACTION_ONESHOT

View File

@@ -26,6 +26,9 @@
"vid": "0xFEED",
"pid": "0x0140"
},
"bootmagic": {
"matrix": [5, 16]
},
"indicators": {
"num_lock": "C13",
"caps_lock": "B14",

View File

@@ -43,10 +43,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define NO_ACTION_TAPPING
#define NO_ACTION_ONESHOT
/* Bootmagic Lite key configuration */
// The (default) Stop key
// Doesn't work, though. Maybe becuase of the bootloader that's in use?
#define BOOTMAGIC_LITE_ROW 0
#define BOOTMAGIC_LITE_COLUMN 1
#define USB_MAX_POWER_CONSUMPTION 100

View File

@@ -8,6 +8,9 @@
"pid": "0x4D43",
"device_version": "0.0.1"
},
"bootmagic": {
"matrix": [0, 1]
},
"processor": "atmega32u4",
"bootloader": "caterina",
"matrix_pins": {

View File

@@ -60,9 +60,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
//#define NO_ACTION_TAPPING
#define NO_ACTION_ONESHOT
/* Bootmagic Lite key configuration */
#define BOOTMAGIC_LITE_ROW 2
#define BOOTMAGIC_LITE_COLUMN 0
#define ENCODERS_PAD_A { D0, D2 }
#define ENCODERS_PAD_B { D1, D3 }

View File

@@ -8,6 +8,9 @@
"pid": "0x0000",
"device_version": "0.0.1"
},
"bootmagic": {
"matrix": [2, 0]
},
"processor": "atmega16u2",
"bootloader": "atmel-dfu",
"layouts": {

View File

@@ -17,9 +17,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
// Define tab key for boot magic
#define BOOTMAGIC_LITE_ROW 1
#define BOOTMAGIC_LITE_COLUMN 0
// OLED
#define OLED_DISPLAY_128X64

View File

@@ -38,6 +38,9 @@
"pid": "0x0000",
"vid": "0xFEED"
},
"bootmagic": {
"matrix": [1, 0]
},
"layouts": {
"LAYOUT_ortho_4_3x10_4": {
"layout": [

View File

@@ -47,12 +47,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define ROTATIONAL_TRANSFORM_ANGLE -25
/* Bootmagic Lite key configuration */
#define BOOTMAGIC_LITE_ROW 0
#define BOOTMAGIC_LITE_COLUMN 0
#define BOOTMAGIC_LITE_ROW_RIGHT 4
#define BOOTMAGIC_LITE_COLUMN_RIGHT 5
#define AUDIO_PIN C6
#define AUDIO_PIN_ALT B7

View File

@@ -6,6 +6,11 @@
"pid": "0x3537",
"device_version": "0.0.1"
},
"split": {
"bootmagic": {
"matrix": [4, 5]
}
},
"processor": "at90usb1286",
"bootloader": "atmel-dfu",
"layouts": {

View File

@@ -29,12 +29,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define ROTATIONAL_TRANSFORM_ANGLE -25
#define POINTING_DEVICE_INVERT_X
/* Bootmagic Lite key configuration */
#define BOOTMAGIC_LITE_ROW 0
#define BOOTMAGIC_LITE_COLUMN 0
#define BOOTMAGIC_LITE_ROW_RIGHT 6
#define BOOTMAGIC_LITE_COLUMN_RIGHT 5
#define DYNAMIC_KEYMAP_LAYER_COUNT 16
#define LAYER_STATE_16BIT

View File

@@ -4,6 +4,11 @@
"pid": "0x3536",
"device_version": "0.0.1"
},
"split": {
"bootmagic": {
"matrix": [6, 5]
}
},
"layouts": {
"LAYOUT_5x6_right": {
"layout": [

View File

@@ -42,7 +42,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE
/* Bootmagic Lite key configuration */
#define BOOTMAGIC_LITE_ROW 1
#define BOOTMAGIC_LITE_COLUMN 7

View File

@@ -8,6 +8,9 @@
"pid": "0x5657",
"device_version": "0.0.1"
},
"bootmagic": {
"matrix": [1, 7]
},
"processor": "atmega32u4",
"bootloader": "caterina",
"layouts": {