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

@@ -28,6 +28,3 @@
/* disable these deprecated features by default */
#define USB_SUSPEND_WAKEUP_DELAY 5000
#define VIA_EEPROM_LAYOUT_OPTIONS_SIZE 2
#define LED_CAPS_LOCK_PIN B7
#define LED_PIN_ON_STATE 0

View File

@@ -7,6 +7,10 @@
"pid": "0x0107",
"device_version": "0.0.1"
},
"indicators": {
"caps_lock": "B7",
"on_state": 0
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"layouts": {

View File

@@ -26,9 +26,6 @@
/* COL2ROW, ROW2COL*/
#define DIODE_DIRECTION COL2ROW
#define LED_CAPS_LOCK_PIN C6
#define LED_PIN_ON_STATE 0
#define RGB_DI_PIN F0
#ifdef RGB_DI_PIN
#define RGBLIGHT_EFFECT_BREATHING

View File

@@ -7,6 +7,10 @@
"pid": "0x7001",
"device_version": "0.0.3"
},
"indicators": {
"caps_lock": "C6",
"on_state": 0
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"layouts": {

View File

@@ -26,9 +26,6 @@
/* COL2ROW, ROW2COL*/
#define DIODE_DIRECTION COL2ROW
#define LED_CAPS_LOCK_PIN C6
#define LED_PIN_ON_STATE 0
#define RGB_DI_PIN B7
#ifdef RGB_DI_PIN
#define RGBLIGHT_EFFECT_BREATHING

View File

@@ -8,6 +8,10 @@
"pid": "0x7000",
"device_version": "0.0.3"
},
"indicators": {
"caps_lock": "C6",
"on_state": 0
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"layouts": {

View File

@@ -21,7 +21,6 @@
#define MATRIX_ROW_PINS { C7, B7, B6, B0, B1, B2 }
#define MATRIX_COL_PINS { B5, B4, D0, C2 }
#define DIODE_DIRECTION COL2ROW
#define LED_NUM_LOCK_PIN C6
#define LED_PIN_ON_STATE 1
#define LOCKING_SUPPORT_ENABLE
#define LOCKING_RESYNC_ENABLE

View File

@@ -7,6 +7,9 @@
"pid": "0x7002",
"device_version": "0.0.1"
},
"indicators": {
"num_lock": "C6"
},
"processor": "atmega32u2",
"bootloader": "atmel-dfu",
"community_layouts": ["numpad_6x4"],

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 B0
#define LED_SCROLL_LOCK_PIN B1
#define LED_PIN_ON_STATE 0
#define BACKLIGHT_PIN B6
#ifdef BACKLIGHT_PIN
#define BACKLIGHT_LEVELS 3

View File

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

View File

@@ -38,9 +38,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* COL2ROW, ROW2COL*/
#define DIODE_DIRECTION COL2ROW
#define LED_CAPS_LOCK_PIN B2
#define LED_PIN_ON_STATE 0
#define BACKLIGHT_PIN B6
#ifdef BACKLIGHT_PIN
#define BACKLIGHT_BREATHING

View File

@@ -8,6 +8,10 @@
"pid": "0x6066",
"device_version": "0.0.1"
},
"indicators": {
"caps_lock": "B2",
"on_state": 0
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"community_layouts": ["65_ansi"],

View File

@@ -28,10 +28,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW
/* indicators */
#define LED_CAPS_LOCK_PIN D4
#define LED_PIN_ON_STATE 0
#define BACKLIGHT_PIN B5
#ifdef BACKLIGHT_PIN
#define BACKLIGHT_LEVELS 3

View File

@@ -8,6 +8,10 @@
"pid": "0x6067",
"device_version": "0.0.2"
},
"indicators": {
"caps_lock": "D4",
"on_state": 0
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"layout_aliases": {

View File

@@ -38,8 +38,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* COL2ROW, ROW2COL*/
#define DIODE_DIRECTION COL2ROW
#define LED_CAPS_LOCK_PIN B6
#define BACKLIGHT_PIN B7
#ifdef BACKLIGHT_PIN
#define BACKLIGHT_BREATHING

View File

@@ -8,6 +8,9 @@
"pid": "0x3658",
"device_version": "0.0.1"
},
"indicators": {
"caps_lock": "B6"
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"layouts": {

View File

@@ -15,9 +15,6 @@
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW
#define LED_CAPS_LOCK_PIN B2
#define LED_PIN_ON_STATE 0
#define BACKLIGHT_PIN B6
#ifdef BACKLIGHT_PIN
#define BACKLIGHT_LEVELS 5

View File

@@ -8,6 +8,10 @@
"pid": "0x6060",
"device_version": "0.0.1"
},
"indicators": {
"caps_lock": "B2",
"on_state": 0
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"layout_aliases": {

View File

@@ -8,6 +8,10 @@
"pid": "0x6061",
"device_version": "0.0.2"
},
"indicators": {
"caps_lock": "B2",
"on_state": 0
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"layout_aliases": {

View File

@@ -28,9 +28,6 @@
#define FORCE_NKRO
#define LED_CAPS_LOCK_PIN C6
#define LED_PIN_ON_STATE 1
#define RGB_DI_PIN F0
#ifdef RGB_DI_PIN
#define RGBLIGHT_EFFECT_BREATHING

View File

@@ -7,6 +7,9 @@
"pid": "0x6062",
"device_version": "0.0.3"
},
"indicators": {
"caps_lock": "C6"
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"community_layouts": ["75_ansi"],

View File

@@ -38,10 +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 B1
#define LED_CAPS_LOCK_PIN B3
#define LED_SCROLL_LOCK_PIN B2
#define BACKLIGHT_PIN B6
#ifdef BACKLIGHT_PIN
#define BACKLIGHT_BREATHING

View File

@@ -8,6 +8,11 @@
"pid": "0x0000",
"device_version": "0.0.1"
},
"indicators": {
"caps_lock": "B3",
"num_lock": "B1",
"scroll_lock": "B2"
},
"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 COL2ROW
#define LED_CAPS_LOCK_PIN E6
#define LED_SCROLL_LOCK_PIN B2
#define LED_PIN_ON_STATE 0
#define BACKLIGHT_PIN B7
#ifdef BACKLIGHT_PIN
#define BACKLIGHT_BREATHING

View File

@@ -8,6 +8,11 @@
"pid": "0x0005",
"device_version": "0.0.1"
},
"indicators": {
"caps_lock": "E6",
"scroll_lock": "B2",
"on_state": 0
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"community_layouts": ["tkl_ansi", "tkl_iso"],

View File

@@ -26,8 +26,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define DIODE_DIRECTION COL2ROW
#define LED_NUM_LOCK_PIN D0
#define BACKLIGHT_PIN D4
#define BACKLIGHT_BREATHING

View File

@@ -8,6 +8,9 @@
"pid": "0x422D",
"device_version": "2.0.0"
},
"indicators": {
"num_lock": "D0"
},
"processor": "atmega32a",
"bootloader": "bootloadhid",
"community_layouts": ["ortho_6x4", "numpad_6x4"],

View File

@@ -38,9 +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 B4
#define LED_PIN_ON_STATE 0
#define BACKLIGHT_PIN B7
#ifdef BACKLIGHT_PIN
#define BACKLIGHT_BREATHING

View File

@@ -8,6 +8,10 @@
"pid": "0x0006",
"device_version": "0.0.1"
},
"indicators": {
"num_lock": "B4",
"on_state": 0
},
"processor": "atmega32u2",
"bootloader": "atmel-dfu",
"community_layouts": ["ortho_6x4"],

View File

@@ -20,10 +20,6 @@
#define MATRIX_ROW_PINS { A10, A9, A8, B14, B13, A2 }
#define MATRIX_COL_PINS { A3, A4, A5, A6, A7, B0, B1, B2, B12, A15, B3, B4, B5, B6, B7, B8, C13, C14, C15, A0}
#define LED_NUM_LOCK_PIN B9
#define LED_CAPS_LOCK_PIN B10
#define LED_PIN_ON_STATE 0
#define DIODE_DIRECTION COL2ROW
#define RGB_DI_PIN B15

View File

@@ -8,6 +8,11 @@
"pid": "0x0101",
"device_version": "0.0.1"
},
"indicators": {
"caps_lock": "B10",
"num_lock": "B9",
"on_state": 0
},
"processor": "STM32F072",
"bootloader": "stm32-dfu",
"debounce": 15,

View File

@@ -23,10 +23,6 @@
#define DIODE_DIRECTION COL2ROW
#define LED_NUM_LOCK_PIN B9
#define LED_CAPS_LOCK_PIN B10
#define LED_PIN_ON_STATE 0
#define RGB_DI_PIN B15
#ifdef RGB_DI_PIN

View File

@@ -8,6 +8,11 @@
"pid": "0x0101",
"device_version": "0.0.1"
},
"indicators": {
"caps_lock": "B10",
"num_lock": "B9",
"on_state": 0
},
"processor": "STM32F072",
"bootloader": "stm32-dfu",
"layouts": {

View File

@@ -21,9 +21,7 @@
#define MATRIX_COLS 15
#define MATRIX_ROW_PINS { B0, B1, B2, B3, B4 }
#define MATRIX_COL_PINS { B5, C6, C7, F7, F6, F5, F4, F1, E6, B7, D0, D1, D2, D3, D5 }
#define LED_NUM_LOCK_PIN D7
#define LED_CAPS_LOCK_PIN D6
#define LED_PIN_ON_STATE 0
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */

View File

@@ -8,6 +8,11 @@
"pid": "0x0103",
"device_version": "0.0.1"
},
"indicators": {
"caps_lock": "D6",
"num_lock": "D7",
"on_state": 0
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"layout_aliases": {

View File

@@ -27,10 +27,6 @@
#define LOCKING_SUPPORT_ENABLE
#define LOCKING_RESYNC_ENABLE
#define LED_CAPS_LOCK_PIN C7
#define LED_SCROLL_LOCK_PIN B2
#define LED_PIN_ON_STATE 1
#define RGB_DI_PIN B3
#ifdef RGB_DI_PIN
#define RGBLIGHT_EFFECT_BREATHING

View File

@@ -8,6 +8,10 @@
"pid": "0x0011",
"device_version": "0.0.1"
},
"indicators": {
"caps_lock": "C7",
"scroll_lock": "B2"
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"layout_aliases": {