Move LED indicator config to data driven (#19800)

This commit is contained in:
Ryan
2023-02-17 13:14:29 +11:00
committed by GitHub
parent d784f78bd0
commit f4ba17c4a0
979 changed files with 1935 additions and 2171 deletions

View File

@@ -42,9 +42,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define BACKLIGHT_BREATHING
#define BACKLIGHT_LEVELS 4
#define LED_CAPS_LOCK_PIN F5
#define LED_PIN_ON_STATE 1
#define RGB_DI_PIN D0 // The pin the LED strip is connected to
#define RGBLED_NUM 1 // Number of LEDs in your strip

View File

@@ -8,6 +8,9 @@
"pid": "0x8E66",
"device_version": "0.0.1"
},
"indicators": {
"caps_lock": "F5"
},
"processor": "atmega32u4",
"bootloader": "qmk-dfu",
"layouts": {

View File

@@ -37,9 +37,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define BACKLIGHT_BREATHING
#define BACKLIGHT_LEVELS 5
#define LED_CAPS_LOCK_PIN E6
#define LED_PIN_ON_STATE 0
#define RGB_DI_PIN F5 // The pin the LED strip is connected to
#define RGBLED_NUM 6 // Number of LEDs in your strip
#define RGBLIGHT_EFFECT_BREATHING

View File

@@ -8,6 +8,10 @@
"pid": "0x0E6D",
"device_version": "0.0.1"
},
"indicators": {
"caps_lock": "E6",
"on_state": 0
},
"processor": "atmega32u4",
"bootloader": "qmk-dfu",
"layouts": {

View File

@@ -39,6 +39,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define QMK_ESC_OUTPUT C4 // usually COL
#define QMK_ESC_INPUT C6 // usually ROW
#define QMK_LED D1
#define LED_CAPS_LOCK_PIN D1
#define LED_PIN_ON_STATE 0

View File

@@ -8,6 +8,10 @@
"pid": "0x8446",
"device_version": "0.0.1"
},
"indicators": {
"caps_lock": "D1",
"on_state": 0
},
"processor": "atmega32u4",
"bootloader": "qmk-dfu",
"layouts": {

View File

@@ -38,12 +38,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* COL2ROW, ROW2COL */
#define DIODE_DIRECTION COL2ROW
//#define LED_NUM_LOCK_PIN B0
//#define LED_CAPS_LOCK_PIN B1
//#define LED_SCROLL_LOCK_PIN B2
//#define LED_COMPOSE_PIN B3
//#define LED_KANA_PIN B4
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */

View File

@@ -37,11 +37,6 @@
/* COL2ROW, ROW2COL*/
#define DIODE_DIRECTION COL2ROW
#define LED_NUM_LOCK_PIN B7
#define LED_CAPS_LOCK_PIN D5
#define LED_SCROLL_LOCK_PIN B0
#define LED_PIN_ON_STATE 0
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */

View File

@@ -8,6 +8,12 @@
"pid": "0x5C62",
"device_version": "0.0.1"
},
"indicators": {
"caps_lock": "D5",
"num_lock": "B7",
"scroll_lock": "B0",
"on_state": 0
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"layouts": {

View File

@@ -37,11 +37,6 @@
/* COL2ROW, ROW2COL*/
#define DIODE_DIRECTION COL2ROW
#define LED_NUM_LOCK_PIN B7
#define LED_CAPS_LOCK_PIN D5
#define LED_SCROLL_LOCK_PIN B0
#define LED_PIN_ON_STATE 0
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */

View File

@@ -8,6 +8,12 @@
"pid": "0x8A18",
"device_version": "0.0.1"
},
"indicators": {
"caps_lock": "D5",
"num_lock": "B7",
"scroll_lock": "B0",
"on_state": 0
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"layouts": {

View File

@@ -37,11 +37,6 @@
/* COL2ROW, ROW2COL*/
#define DIODE_DIRECTION COL2ROW
#define LED_NUM_LOCK_PIN D6
#define LED_CAPS_LOCK_PIN D7
#define LED_SCROLL_LOCK_PIN D4
#define LED_PIN_ON_STATE 0
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */

View File

@@ -8,6 +8,12 @@
"pid": "0x8B23",
"device_version": "0.0.1"
},
"indicators": {
"caps_lock": "D7",
"num_lock": "D6",
"scroll_lock": "D4",
"on_state": 0
},
"processor": "atmega32u4",
"bootloader": "qmk-dfu",
"layouts": {

View File

@@ -37,11 +37,6 @@
/* COL2ROW, ROW2COL*/
#define DIODE_DIRECTION COL2ROW
#define LED_NUM_LOCK_PIN B2
#define LED_CAPS_LOCK_PIN B1
#define LED_SCROLL_LOCK_PIN B0
#define LED_PIN_ON_STATE 0
/*
* Feature disable options
* These options are also useful to firmware size reduction.

View File

@@ -8,6 +8,12 @@
"pid": "0x198B",
"device_version": "0.0.1"
},
"indicators": {
"caps_lock": "B1",
"num_lock": "B2",
"scroll_lock": "B0",
"on_state": 0
},
"processor": "atmega32u4",
"bootloader": "qmk-dfu",
"layouts": {

View File

@@ -37,9 +37,6 @@
/* COL2ROW, ROW2COL*/
#define DIODE_DIRECTION COL2ROW
#define LED_CAPS_LOCK_PIN C7
#define LED_PIN_ON_STATE 0
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */

View File

@@ -8,6 +8,10 @@
"pid": "0x0145",
"device_version": "0.0.1"
},
"indicators": {
"caps_lock": "C7",
"on_state": 0
},
"processor": "atmega32u4",
"bootloader": "qmk-dfu",
"layouts": {

View File

@@ -42,11 +42,6 @@
#define QMK_ESC_INPUT D1
#define QMK_LED B1
#define LED_NUM_LOCK_PIN B2
#define LED_CAPS_LOCK_PIN B1
#define LED_SCROLL_LOCK_PIN B3
#define LED_PIN_ON_STATE 0
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */

View File

@@ -8,6 +8,12 @@
"pid": "0x5160",
"device_version": "0.0.1"
},
"indicators": {
"caps_lock": "B1",
"num_lock": "B2",
"scroll_lock": "B3",
"on_state": 0
},
"processor": "atmega32u4",
"bootloader": "qmk-dfu",
"layouts": {

View File

@@ -1,22 +0,0 @@
// Copyright 2022 Evelien Dekkers (@evyd13)
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#define LED_PIN_ON_STATE 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

View File

@@ -14,7 +14,8 @@
},
"indicators": {
"caps_lock": "E6",
"scroll_lock": "E2"
"scroll_lock": "E2",
"on_state": 0
},
"matrix_pins": {
"cols": ["F4", "F5", "F6", "C7", "C6", "B3", "B1", "B2", "B7", "D7", "B5", "B4", "D0", "B6", "D1"],

View File

@@ -38,8 +38,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW
#define LED_CAPS_LOCK_PIN D0
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */

View File

@@ -8,6 +8,9 @@
"pid": "0x1F02",
"device_version": "0.0.1"
},
"indicators": {
"caps_lock": "D0"
},
"processor": "atmega32u4",
"bootloader": "qmk-dfu",
"community_layouts": ["66_ansi", "66_iso"],

View File

@@ -38,9 +38,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW
#define LED_CAPS_LOCK_PIN D5
#define LED_PIN_ON_STATE 0
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */

View File

@@ -8,6 +8,10 @@
"pid": "0x3320",
"device_version": "0.0.1"
},
"indicators": {
"caps_lock": "D5",
"on_state": 0
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"layouts": {

View File

@@ -38,11 +38,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* COL2ROW, ROW2COL */
#define DIODE_DIRECTION COL2ROW
#define LED_NUM_LOCK_PIN B2
#define LED_CAPS_LOCK_PIN B3
#define LED_SCROLL_LOCK_PIN B7
#define LED_PIN_ON_STATE 0
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */

View File

@@ -8,6 +8,12 @@
"pid": "0xAAF8",
"device_version": "0.0.1"
},
"indicators": {
"caps_lock": "B3",
"num_lock": "B2",
"scroll_lock": "B7",
"on_state": 0
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"layouts": {

View File

@@ -38,10 +38,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* COL2ROW, ROW2COL*/
#define DIODE_DIRECTION ROW2COL
#define LED_CAPS_LOCK_PIN F7
#define LED_SCROLL_LOCK_PIN F6
#define LED_PIN_ON_STATE 0
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */

View File

@@ -8,6 +8,11 @@
"pid": "0x87C9",
"device_version": "0.0.1"
},
"indicators": {
"caps_lock": "F7",
"scroll_lock": "F6",
"on_state": 0
},
"bootmagic": {
"matrix": [6, 5]
},

View File

@@ -37,8 +37,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define SN74X138_ADDRESS_PINS { D2, D1, D0 }
#define LED_PIN_ON_STATE 0
/*
* Feature disable options
* These options are also useful to firmware size reduction.

View File

@@ -26,7 +26,8 @@
"indicators": {
"num_lock": "B2",
"caps_lock": "B0",
"scroll_lock": "B1"
"scroll_lock": "B1",
"on_state": 0
},
"community_layouts": [
"fullsize_ansi",

View File

@@ -43,11 +43,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define QMK_ESC_INPUT F0
#define QMK_LED B1
#define LED_NUM_LOCK_PIN B3
#define LED_CAPS_LOCK_PIN B1
#define LED_SCROLL_LOCK_PIN B2
#define LED_PIN_ON_STATE 0
#define BACKLIGHT_PIN B7
#define BACKLIGHT_BREATHING
#define BACKLIGHT_LEVELS 5

View File

@@ -8,6 +8,12 @@
"pid": "0xB00E",
"device_version": "0.0.1"
},
"indicators": {
"caps_lock": "B1",
"num_lock": "B3",
"scroll_lock": "B2",
"on_state": 0
},
"bootmagic": {
"matrix": [2, 3]
},

View File

@@ -31,11 +31,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW
#define LED_NUM_LOCK_PIN B1
#define LED_CAPS_LOCK_PIN B2
#define LED_SCROLL_LOCK_PIN B3
#define LED_PIN_ON_STATE 0
/* Backlight configuration
*/
#define RGB_DI_PIN B7

View File

@@ -8,6 +8,12 @@
"pid": "0xA71C",
"device_version": "0.0.3"
},
"indicators": {
"caps_lock": "B2",
"num_lock": "B1",
"scroll_lock": "B3",
"on_state": 0
},
"processor": "atmega32u4",
"bootloader": "qmk-dfu",
"community_layouts": ["alice", "alice_split_bs"],