mirror of
https://github.com/qmk/qmk_firmware.git
synced 2026-09-24 10:49:28 +08:00
Move Bootmagic config to data driven (#19860)
This commit is contained in:
@@ -55,7 +55,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
//#define NO_ACTION_LAYER
|
||||
//#define NO_ACTION_TAPPING
|
||||
//#define NO_ACTION_ONESHOT
|
||||
|
||||
/* Bootmagic Lite key configuration */
|
||||
#define BOOTMAGIC_LITE_ROW 1
|
||||
#define BOOTMAGIC_LITE_COLUMN 0
|
||||
|
||||
@@ -8,6 +8,9 @@
|
||||
"pid": "0xF09F",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"bootmagic": {
|
||||
"matrix": [1, 0]
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"bootloader": "caterina",
|
||||
"matrix_pins": {
|
||||
|
||||
@@ -26,10 +26,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#define SOFT_SERIAL_PIN D1
|
||||
|
||||
#define EE_HANDS
|
||||
|
||||
/* Top left key on left half */
|
||||
#define BOOTMAGIC_LITE_ROW 0
|
||||
#define BOOTMAGIC_LITE_COLUMN 0
|
||||
/* Top right key on right half */
|
||||
#define BOOTMAGIC_LITE_ROW_RIGHT 4
|
||||
#define BOOTMAGIC_LITE_COLUMN_RIGHT 4
|
||||
|
||||
@@ -19,6 +19,9 @@
|
||||
]
|
||||
},
|
||||
"split": {
|
||||
"bootmagic": {
|
||||
"matrix": [4, 4]
|
||||
},
|
||||
"matrix_pins": {
|
||||
"right": {
|
||||
"direct": [
|
||||
|
||||
@@ -41,11 +41,6 @@
|
||||
#define ENCODERS_PAD_A { GP18 }
|
||||
#define ENCODERS_PAD_B { GP17 }
|
||||
|
||||
/* Bootmagic lite */
|
||||
/* (Press the key below the encoder button while plugging the keyboard to enter the bootloader and clear flash) */
|
||||
#define BOOTMAGIC_LITE_ROW 1
|
||||
#define BOOTMAGIC_LITE_COLUMN 2
|
||||
|
||||
/* Double tap the side button to enter bootloader */
|
||||
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET
|
||||
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_LED GP13
|
||||
|
||||
@@ -8,6 +8,9 @@
|
||||
"pid": "0x0108",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"bootmagic": {
|
||||
"matrix": [1, 2]
|
||||
},
|
||||
"processor": "RP2040",
|
||||
"bootloader": "rp2040",
|
||||
"matrix_pins": {
|
||||
|
||||
@@ -32,6 +32,3 @@
|
||||
#define SOFT_SERIAL_PIN D2
|
||||
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
#define BOOTMAGIC_LITE_ROW 0
|
||||
#define BOOTMAGIC_LITE_COLUMN 5
|
||||
|
||||
@@ -8,6 +8,9 @@
|
||||
"pid": "0x0001",
|
||||
"device_version": "0.0.0"
|
||||
},
|
||||
"bootmagic": {
|
||||
"matrix": [0, 5]
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"bootloader": "caterina",
|
||||
"layouts": {
|
||||
|
||||
@@ -32,8 +32,3 @@
|
||||
#define SOFT_SERIAL_PIN D2
|
||||
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
#define BOOTMAGIC_LITE_ROW_RIGHT 0
|
||||
#define BOOTMAGIC_LITE_COLUMN_RIGHT 5
|
||||
#define BOOTMAGIC_LITE_ROW_LEFT 0
|
||||
#define BOOTMAGIC_LITE_COLUMN_LEFT 5
|
||||
|
||||
@@ -8,6 +8,9 @@
|
||||
"pid": "0x0001",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"bootmagic": {
|
||||
"matrix": [0, 5]
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"bootloader": "caterina",
|
||||
"layouts": {
|
||||
|
||||
@@ -32,8 +32,3 @@
|
||||
#define SOFT_SERIAL_PIN D2
|
||||
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
#define BOOTMAGIC_LITE_ROW_RIGHT 0
|
||||
#define BOOTMAGIC_LITE_COLUMN_RIGHT 5
|
||||
#define BOOTMAGIC_LITE_ROW_LEFT 0
|
||||
#define BOOTMAGIC_LITE_COLUMN_LEFT 5
|
||||
|
||||
@@ -8,6 +8,9 @@
|
||||
"pid": "0x0003",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"bootmagic": {
|
||||
"matrix": [0, 5]
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"bootloader": "caterina",
|
||||
"layouts": {
|
||||
|
||||
@@ -32,8 +32,3 @@
|
||||
#define SOFT_SERIAL_PIN D2
|
||||
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
#define BOOTMAGIC_LITE_ROW_RIGHT 0
|
||||
#define BOOTMAGIC_LITE_COLUMN_RIGHT 5
|
||||
#define BOOTMAGIC_LITE_ROW_LEFT 0
|
||||
#define BOOTMAGIC_LITE_COLUMN_LEFT 5
|
||||
|
||||
@@ -8,6 +8,9 @@
|
||||
"pid": "0x0005",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"bootmagic": {
|
||||
"matrix": [0, 5]
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"bootloader": "caterina",
|
||||
"layouts": {
|
||||
|
||||
@@ -32,8 +32,3 @@
|
||||
#define SOFT_SERIAL_PIN D2
|
||||
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
#define BOOTMAGIC_LITE_ROW_RIGHT 0
|
||||
#define BOOTMAGIC_LITE_COLUMN_RIGHT 5
|
||||
#define BOOTMAGIC_LITE_ROW_LEFT 0
|
||||
#define BOOTMAGIC_LITE_COLUMN_LEFT 5
|
||||
|
||||
@@ -8,6 +8,9 @@
|
||||
"pid": "0x0004",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"bootmagic": {
|
||||
"matrix": [0, 5]
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"bootloader": "caterina",
|
||||
"layouts": {
|
||||
|
||||
@@ -34,10 +34,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
/* Locking resynchronize hack */
|
||||
#define LOCKING_RESYNC_ENABLE
|
||||
|
||||
/* Bootmagic Lite Support*/
|
||||
#define BOOTMAGIC_LITE_ROW 3
|
||||
#define BOOTMAGIC_LITE_COLUMN 6
|
||||
|
||||
/*
|
||||
* Feature disable options
|
||||
* These options are also useful to firmware size reduction.
|
||||
|
||||
@@ -8,6 +8,9 @@
|
||||
"pid": "0x6464",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"bootmagic": {
|
||||
"matrix": [3, 6]
|
||||
},
|
||||
"processor": "atmega32u2",
|
||||
"bootloader": "atmel-dfu",
|
||||
"community_layouts": ["60_ansi"],
|
||||
|
||||
@@ -43,7 +43,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#define RGBLIGHT_EFFECT_RGB_TEST
|
||||
#define RGBLIGHT_EFFECT_ALTERNATING
|
||||
#define RGBLIGHT_EFFECT_TWINKLE
|
||||
|
||||
/* Bootmagic Lite key configuration */
|
||||
#define BOOTMAGIC_LITE_ROW 4
|
||||
#define BOOTMAGIC_LITE_COLUMN 0
|
||||
|
||||
@@ -8,6 +8,9 @@
|
||||
"pid": "0x422D",
|
||||
"device_version": "2.0.0"
|
||||
},
|
||||
"bootmagic": {
|
||||
"matrix": [4, 0]
|
||||
},
|
||||
"processor": "atmega32a",
|
||||
"bootloader": "bootloadhid",
|
||||
"layout_aliases": {
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
// Copyright 2022 Jason Devadoss (@jasonj2232)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
#define BOOTMAGIC_LITE_ROW 1
|
||||
#define BOOTMAGIC_LITE_COLUMN 0
|
||||
|
||||
/*
|
||||
* 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
|
||||
@@ -10,6 +10,9 @@
|
||||
"pid": "0x4930",
|
||||
"vid": "0x4157"
|
||||
},
|
||||
"bootmagic": {
|
||||
"matrix": [1, 0]
|
||||
},
|
||||
"features": {
|
||||
"bootmagic": true,
|
||||
"command": false,
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
// Copyright 2022 Jason Devadoss (@jasonj2232)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
#define BOOTMAGIC_LITE_ROW 1
|
||||
#define BOOTMAGIC_LITE_COLUMN 0
|
||||
|
||||
//Uncomment the below if the encoder direction is flipped/opposite to what is expected
|
||||
|
||||
//#define ENCODER_DIRECTION_FLIP
|
||||
|
||||
/*
|
||||
* 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
|
||||
@@ -11,6 +11,9 @@
|
||||
"pid": "0x4930",
|
||||
"vid": "0x4157"
|
||||
},
|
||||
"bootmagic": {
|
||||
"matrix": [1, 0]
|
||||
},
|
||||
"features": {
|
||||
"bootmagic": true,
|
||||
"command": false,
|
||||
|
||||
@@ -53,7 +53,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
//#define NO_ACTION_LAYER
|
||||
//#define NO_ACTION_TAPPING
|
||||
//#define NO_ACTION_ONESHOT
|
||||
|
||||
/* Bootmagic Lite key configuration */
|
||||
#define BOOTMAGIC_LITE_ROW 0
|
||||
#define BOOTMAGIC_LITE_COLUMN 2
|
||||
|
||||
@@ -8,6 +8,9 @@
|
||||
"pid": "0x0000",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"bootmagic": {
|
||||
"matrix": [0, 2]
|
||||
},
|
||||
"processor": "at90usb1286",
|
||||
"bootloader": "atmel-dfu",
|
||||
"layouts": {
|
||||
|
||||
@@ -71,7 +71,3 @@
|
||||
//#define NO_ACTION_LAYER
|
||||
//#define NO_ACTION_TAPPING
|
||||
//#define NO_ACTION_ONESHOT
|
||||
|
||||
/* Bootmagic Lite key configuration */
|
||||
#define BOOTMAGIC_LITE_ROW 4
|
||||
#define BOOTMAGIC_LITE_COLUMN 6
|
||||
|
||||
@@ -8,6 +8,9 @@
|
||||
"pid": "0xD408",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"bootmagic": {
|
||||
"matrix": [4, 6]
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"bootloader": "atmel-dfu",
|
||||
"layouts": {
|
||||
|
||||
@@ -68,10 +68,6 @@
|
||||
/* EEPROM for via */
|
||||
#define DYNAMIC_KEYMAP_LAYER_COUNT 3
|
||||
|
||||
/* bootmagic row col assignment */
|
||||
#define BOOTMAGIC_LITE_ROW 1
|
||||
#define BOOTMAGIC_LITE_COLUMN 0
|
||||
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
# define RGB_MATRIX_KEYPRESSES // reacts to keypresses
|
||||
// # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
|
||||
|
||||
@@ -8,6 +8,9 @@
|
||||
"pid": "0xEAF3",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"bootmagic": {
|
||||
"matrix": [1, 0]
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"bootloader": "atmel-dfu",
|
||||
"layouts": {
|
||||
|
||||
@@ -10,6 +10,3 @@
|
||||
#define SERIAL_USART_FULL_DUPLEX
|
||||
#define SERIAL_USART_TX_PIN GP0
|
||||
#define SERIAL_USART_RX_PIN GP1
|
||||
|
||||
#define BOOTMAGIC_LITE_ROW 0
|
||||
#define BOOTMAGIC_LITE_COLUMN 5
|
||||
|
||||
@@ -18,6 +18,9 @@
|
||||
"pid": "0x0001",
|
||||
"vid": "0xBEEB"
|
||||
},
|
||||
"bootmagic": {
|
||||
"matrix": [0, 5]
|
||||
},
|
||||
"matrix_pins": {
|
||||
"direct": [
|
||||
["GP5", "GP4", "GP11", "GP15", "GP3", "GP2"],
|
||||
|
||||
@@ -7,13 +7,6 @@
|
||||
#define SERIAL_USART_TX_PIN B6 // USART TX pin
|
||||
#define SERIAL_USART_RX_PIN B7 // USART RX pin
|
||||
|
||||
/* Top left key on left half */
|
||||
#define BOOTMAGIC_LITE_ROW 0
|
||||
#define BOOTMAGIC_LITE_COLUMN 0
|
||||
/* Top right key on right half */
|
||||
#define BOOTMAGIC_LITE_ROW_RIGHT 4
|
||||
#define BOOTMAGIC_LITE_COLUMN_RIGHT 5
|
||||
|
||||
/*
|
||||
* Feature disable options
|
||||
* These options are also useful to firmware size reduction.
|
||||
|
||||
@@ -28,6 +28,9 @@
|
||||
]
|
||||
},
|
||||
"split": {
|
||||
"bootmagic": {
|
||||
"matrix": [4, 5]
|
||||
},
|
||||
"matrix_pins": {
|
||||
"right": {
|
||||
"direct": [
|
||||
|
||||
@@ -36,10 +36,3 @@
|
||||
/* #define EE_HANDS */
|
||||
/* #define MASTER_LEFT */
|
||||
/* #define MASTER_RIGHT */
|
||||
|
||||
/* Top left key on left half */
|
||||
#define BOOTMAGIC_LITE_ROW 0
|
||||
#define BOOTMAGIC_LITE_COLUMN 0
|
||||
/* Top right key on right half */
|
||||
#define BOOTMAGIC_LITE_ROW_RIGHT 0
|
||||
#define BOOTMAGIC_LITE_COLUMN_RIGHT 0
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
// Copyright 2018-2021
|
||||
// ENDO Katsuhiro <ka2hiro@curlybracket.co.jp>
|
||||
// David Philip Barr <@davidphilipbarr>
|
||||
// Pierre Chevalier <pierrechevalier83@gmail.com>
|
||||
// SPDX-License-Identifier: GPL-2.0+
|
||||
|
||||
#define BOOTMAGIC_LITE_ROW 0
|
||||
#define BOOTMAGIC_LITE_COLUMN 0
|
||||
/* Top right key on right half */
|
||||
#define BOOTMAGIC_LITE_ROW_RIGHT 4
|
||||
#define BOOTMAGIC_LITE_COLUMN_RIGHT 4
|
||||
@@ -29,6 +29,9 @@
|
||||
]
|
||||
},
|
||||
"split": {
|
||||
"bootmagic": {
|
||||
"matrix": [4, 4]
|
||||
},
|
||||
"enabled": true,
|
||||
"matrix_pins": {
|
||||
"right": {
|
||||
|
||||
@@ -85,7 +85,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
//#define NO_ACTION_LAYER
|
||||
//#define NO_ACTION_TAPPING
|
||||
//#define NO_ACTION_ONESHOT
|
||||
|
||||
/* Bootmagic Lite key configuration */
|
||||
#define BOOTMAGIC_LITE_ROW 6
|
||||
#define BOOTMAGIC_LITE_COLUMN 0
|
||||
|
||||
@@ -8,6 +8,9 @@
|
||||
"pid": "0x0012",
|
||||
"device_version": "0.0.3"
|
||||
},
|
||||
"bootmagic": {
|
||||
"matrix": [6, 0]
|
||||
},
|
||||
"layouts": {
|
||||
"LAYOUT_ortho_5x16": {
|
||||
"layout":
|
||||
|
||||
@@ -41,6 +41,3 @@
|
||||
#ifdef RGBLIGHT_ENABLE
|
||||
#define RGBLED_NUM 8 // Number of LEDs
|
||||
#endif
|
||||
|
||||
#define BOOTMAGIC_LITE_ROW 0
|
||||
#define BOOTMAGIC_LITE_COLUMN 1
|
||||
|
||||
@@ -8,6 +8,9 @@
|
||||
"pid": "0x6462",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"bootmagic": {
|
||||
"matrix": [0, 1]
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"bootloader": "caterina",
|
||||
"layouts": {
|
||||
|
||||
@@ -74,7 +74,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
//#define NO_ACTION_LAYER
|
||||
//#define NO_ACTION_TAPPING
|
||||
//#define NO_ACTION_ONESHOT
|
||||
|
||||
/* Bootmagic Lite key configuration */
|
||||
#define BOOTMAGIC_LITE_ROW 0
|
||||
#define BOOTMAGIC_LITE_COLUMN 2
|
||||
|
||||
@@ -8,6 +8,9 @@
|
||||
"pid": "0x4447",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"bootmagic": {
|
||||
"matrix": [0, 2]
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"bootloader": "atmel-dfu",
|
||||
"layouts": {
|
||||
|
||||
@@ -39,8 +39,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#define RGB_DI_PIN D6
|
||||
#define RGBLED_NUM 17
|
||||
|
||||
/* Set to top left most key */
|
||||
#define BOOTMAGIC_LITE_ROW 4
|
||||
#define BOOTMAGIC_LITE_COLUMN 10
|
||||
|
||||
#define TAPPING_TERM 200
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
"pid": "0x4556",
|
||||
"device_version": "0.0.2"
|
||||
},
|
||||
"bootmagic": {
|
||||
"matrix": [4, 10]
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"bootloader": "atmel-dfu",
|
||||
"layout_aliases": {
|
||||
|
||||
@@ -40,10 +40,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#define RGBLIGHT_EFFECT_TWINKLE
|
||||
#define RGBLED_NUM 23
|
||||
|
||||
/* Set to top left most key */
|
||||
#define BOOTMAGIC_LITE_ROW 5
|
||||
#define BOOTMAGIC_LITE_COLUMN 10
|
||||
|
||||
/*
|
||||
* Feature disable options
|
||||
* These options are also useful to firmware size reduction.
|
||||
|
||||
@@ -8,6 +8,9 @@
|
||||
"pid": "0x4A46",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"bootmagic": {
|
||||
"matrix": [5, 10]
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"bootloader": "atmel-dfu",
|
||||
"layouts": {
|
||||
|
||||
@@ -39,8 +39,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#define RGB_DI_PIN D6
|
||||
#define RGBLED_NUM 17
|
||||
|
||||
/* Set to top left most key */
|
||||
#define BOOTMAGIC_LITE_ROW 5
|
||||
#define BOOTMAGIC_LITE_COLUMN 10
|
||||
|
||||
#define TAPPING_TERM 200
|
||||
|
||||
@@ -8,6 +8,9 @@
|
||||
"pid": "0x4C53",
|
||||
"device_version": "0.0.3"
|
||||
},
|
||||
"bootmagic": {
|
||||
"matrix": [5, 10]
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"bootloader": "atmel-dfu",
|
||||
"layouts": {
|
||||
|
||||
@@ -39,8 +39,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#define RGB_DI_PIN D6
|
||||
#define RGBLED_NUM 17
|
||||
|
||||
/* Set to top left most key */
|
||||
#define BOOTMAGIC_LITE_ROW 5
|
||||
#define BOOTMAGIC_LITE_COLUMN 10
|
||||
|
||||
#define TAPPING_TERM 200
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user