Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move LED indicator config to data driven #19800

Merged
merged 4 commits into from
Feb 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 0 additions & 6 deletions keyboards/0xc7/61key/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
3 changes: 0 additions & 3 deletions keyboards/1upkeyboards/1up60hte/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,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 B6
#define LED_PIN_ON_STATE 0

#define BACKLIGHT_PIN B7
#ifdef BACKLIGHT_PIN
#define BACKLIGHT_LEVELS 3
Expand Down
4 changes: 4 additions & 0 deletions keyboards/1upkeyboards/1up60hte/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
"pid": "0x6874",
"device_version": "0.0.1"
},
"indicators": {
"caps_lock": "B6",
"on_state": 0
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"layout_aliases": {
Expand Down
6 changes: 0 additions & 6 deletions keyboards/1upkeyboards/super16v2/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,6 @@
/* 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

#define RGB_DI_PIN B5
#define RGB_MATRIX_LED_COUNT 20
#ifdef RGB_DI_PIN
Expand Down
3 changes: 0 additions & 3 deletions keyboards/3keyecosystem/2key2/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MATRIX_ROW_PINS { F6 }
#define MATRIX_COL_PINS { F4, D7 }

// LED on kbmount base board is on B7
#define LED_CAPS_LOCK_PIN B7 // onboard LED for testing

/* COL2ROW, ROW2COL */
#define DIODE_DIRECTION COL2ROW

Expand Down
3 changes: 3 additions & 0 deletions keyboards/3keyecosystem/2key2/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"pid": "0x3304",
"device_version": "0.0.1"
},
"indicators": {
"caps_lock": "B7"
},
"processor": "atmega32u4",
"bootloader": "caterina",
"layouts": {
Expand Down
5 changes: 0 additions & 5 deletions keyboards/40percentclub/sixpack/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define BACKLIGHT_BREATHING
#define BACKLIGHT_LEVELS 6
#define BACKLIGHT_PINS { F4, F5 } // Top Row, Bottom Row

/* LED Indicators */
#define LED_PIN_ON_STATE 0
#define LED_CAPS_LOCK_PIN B0 // RX Led
#define LED_NUM_LOCK_PIN D5 // TX Led
5 changes: 5 additions & 0 deletions keyboards/40percentclub/sixpack/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
"pid": "0x5350",
"device_version": "10.0.1"
},
"indicators": {
"caps_lock": "B0",
"num_lock": "D5",
"on_state": 0
},
"processor": "atmega32u4",
"bootloader": "caterina",
"matrix_pins": {
Expand Down
2 changes: 0 additions & 2 deletions keyboards/4pplet/aekiso60/rev_b/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define RGBLIGHT_EFFECT_ALTERNATING
#define RGBLIGHT_EFFECT_TWINKLE

#define LED_CAPS_LOCK_PIN A10

#define BACKLIGHT_LEVELS 5
3 changes: 3 additions & 0 deletions keyboards/4pplet/aekiso60/rev_b/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"pid": "0x0011",
"device_version": "0.0.2"
},
"indicators": {
"caps_lock": "A10"
},
"processor": "STM32F072",
"bootloader": "stm32-dfu",
"layouts": {
Expand Down
3 changes: 0 additions & 3 deletions keyboards/4pplet/eagle_viper_rep/rev_b/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define LOCKING_RESYNC_ENABLE

/* Indicator leds */
#define LED_CAPS_LOCK_PIN B1
#define LED_NUM_LOCK_PIN B12
#define LED_SCROLL_LOCK_PIN B13
#define LAYER_1 B14
#define LAYER_2 B15
#define LAYER_3 B0
Expand Down
5 changes: 5 additions & 0 deletions keyboards/4pplet/eagle_viper_rep/rev_b/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
"pid": "0x0010",
"device_version": "0.0.2"
},
"indicators": {
"caps_lock": "B1",
"num_lock": "B12",
"scroll_lock": "B13"
},
"processor": "STM32F072",
"bootloader": "stm32-dfu",
"layouts": {
Expand Down
3 changes: 0 additions & 3 deletions keyboards/4pplet/yakiimo/rev_a/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MATRIX_ROW_PINS { B10, B1, C13, C14, B14, B12, B9, B8, B5, B4, A15, B3 }
#define DIODE_DIRECTION COL2ROW

#define LED_CAPS_LOCK_PIN A6
#define LED_SCROLL_LOCK_PIN A7

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
Expand Down
4 changes: 4 additions & 0 deletions keyboards/4pplet/yakiimo/rev_a/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
"pid": "0x000A",
"device_version": "0.0.2"
},
"indicators": {
"caps_lock": "A6",
"scroll_lock": "A7"
},
"processor": "STM32F411",
"bootloader": "stm32-dfu",
"layouts": {
Expand Down
2 changes: 0 additions & 2 deletions keyboards/acheron/athena/alpha/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define WS2812_DMA_STREAM STM32_DMA2_STREAM5
#define WS2812_DMA_CHANNEL 6

#define LED_CAPS_LOCK_PIN A10

// If this is defined, the caps lock LED will turn on and off according to the state of caps lock. If not, the LED will shine like all other LEDs despite the caps lock state.
#define CAPSLOCK_INDICATOR
3 changes: 3 additions & 0 deletions keyboards/acheron/athena/alpha/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"pid": "0x6584",
"device_version": "0.0.1"
},
"indicators": {
"caps_lock": "A10"
},
"processor": "STM32F411",
"bootloader": "stm32-dfu"
}
2 changes: 0 additions & 2 deletions keyboards/acheron/athena/beta/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define WS2812_DMA_STREAM STM32_DMA2_STREAM5
#define WS2812_DMA_CHANNEL 6

#define LED_CAPS_LOCK_PIN C8

// If this is defined, the caps lock LED will turn on and off according to the state of caps lock. If not, the LED will shine like all other LEDs despite the caps lock state.
#define CAPSLOCK_INDICATOR
3 changes: 3 additions & 0 deletions keyboards/acheron/athena/beta/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"pid": "0x6585",
"device_version": "0.0.2"
},
"indicators": {
"caps_lock": "C8"
},
"processor": "STM32F401",
"bootloader": "stm32-dfu"
}
4 changes: 0 additions & 4 deletions keyboards/acheron/elongate/beta/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,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

#define LED_NUM_LOCK_PIN D2
#define LED_CAPS_LOCK_PIN D1
#define LED_SCROLL_LOCK_PIN D0
5 changes: 5 additions & 0 deletions keyboards/acheron/elongate/beta/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
"pid": "0x454C",
"device_version": "0.0.1"
},
"indicators": {
"caps_lock": "D1",
"num_lock": "D2",
"scroll_lock": "D0"
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"layouts": {
Expand Down
7 changes: 0 additions & 7 deletions keyboards/ada/infinity81/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@
/* 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

#define RGB_DI_PIN D0
#ifdef RGB_DI_PIN
# define RGBLED_NUM 107
Expand Down
4 changes: 0 additions & 4 deletions keyboards/aeboards/ext65/rev3/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,4 @@

#pragma once

// Locks
#define LED_NUM_LOCK_PIN F5
#define LED_CAPS_LOCK_PIN F4
#define LED_SCROLL_LOCK_PIN F1
#define LED_LAYERS_PIN F0
5 changes: 5 additions & 0 deletions keyboards/aeboards/ext65/rev3/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
"pid": "0xA653",
"device_version": "0.0.1"
},
"indicators": {
"caps_lock": "F4",
"num_lock": "F5",
"scroll_lock": "F1"
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"diode_direction": "COL2ROW",
Expand Down
4 changes: 0 additions & 4 deletions keyboards/ai03/andromeda/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE

#define LED_CAPS_LOCK_PIN A2
#define LED_SCROLL_LOCK_PIN A1
#define LED_PIN_ON_STATE 0
5 changes: 5 additions & 0 deletions keyboards/ai03/andromeda/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
"pid": "0x000A",
"device_version": "0.0.1"
},
"indicators": {
"caps_lock": "A2",
"scroll_lock": "A1",
"on_state": 0
},
"processor": "STM32F072",
"bootloader": "stm32-dfu",
"layouts": {
Expand Down
5 changes: 0 additions & 5 deletions keyboards/al1/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define SN74X154_ADDRESS_PINS { D4, D5, D6, D7 }
#define SN74X154_E1_PIN D3

#define LED_NUM_LOCK_PIN D0
#define LED_CAPS_LOCK_PIN B7
#define LED_SCROLL_LOCK_PIN D1
#define LED_PIN_ON_STATE 0

#define BACKLIGHT_PIN B6
#define BACKLIGHT_LEVELS 3
#define BACKLIGHT_BREATHING
Expand Down
6 changes: 6 additions & 0 deletions keyboards/al1/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
"pid": "0x6050",
"device_version": "1.0.4"
},
"indicators": {
"caps_lock": "B7",
"num_lock": "D0",
"scroll_lock": "D1",
"on_state": 0
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"layouts": {
Expand Down
3 changes: 0 additions & 3 deletions keyboards/alf/dc60/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 B7
#define LED_PIN_ON_STATE 0

#define BACKLIGHT_PIN B6
#define BACKLIGHT_BREATHING
#define BACKLIGHT_LEVELS 5
Expand Down
4 changes: 4 additions & 0 deletions keyboards/alf/dc60/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
"pid": "0x0000",
"device_version": "0.0.1"
},
"indicators": {
"caps_lock": "B7",
"on_state": 0
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"layouts": {
Expand Down
5 changes: 0 additions & 5 deletions keyboards/alf/x11/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 E6
#define LED_CAPS_LOCK_PIN C6
#define LED_SCROLL_LOCK_PIN C7
#define LED_PIN_ON_STATE 0

#define BACKLIGHT_PIN B7
#define BACKLIGHT_BREATHING
#define BACKLIGHT_LEVELS 3
Expand Down
6 changes: 6 additions & 0 deletions keyboards/alf/x11/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
"pid": "0x0001",
"device_version": "0.0.1"
},
"indicators": {
"caps_lock": "C6",
"num_lock": "E6",
"scroll_lock": "C7",
"on_state": 0
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"layouts": {
Expand Down
3 changes: 0 additions & 3 deletions keyboards/alf/x2/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,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 3
Expand Down
4 changes: 4 additions & 0 deletions keyboards/alf/x2/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
"pid": "0x6060",
"device_version": "0.0.1"
},
"indicators": {
"caps_lock": "B2",
"on_state": 0
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"layouts": {
Expand Down
2 changes: 0 additions & 2 deletions keyboards/alps64/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#define DIODE_DIRECTION COL2ROW

#define LED_CAPS_LOCK_PIN C5

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
Expand Down
3 changes: 3 additions & 0 deletions keyboards/alps64/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"pid": "0x6464",
"device_version": "0.0.1"
},
"indicators": {
"caps_lock": "C5",
},
"bootmagic": {
"matrix": [3, 6]
},
Expand Down
3 changes: 0 additions & 3 deletions keyboards/amjkeyboard/amj40/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MATRIX_ROW_PINS { F4, F5, F6, F7}
#define MATRIX_COL_PINS { F1, F0, E6, C7, C6, B0, D4, B1, B7, B5, B4, D7}

#define LED_CAPS_LOCK_PIN B2
#define LED_PIN_ON_STATE 0

#define BACKLIGHT_PIN B6

/* COL2ROW or ROW2COL */
Expand Down
4 changes: 4 additions & 0 deletions keyboards/amjkeyboard/amj40/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
"pid": "0x6072",
"device_version": "0.0.2"
},
"indicators": {
"caps_lock": "B2",
"on_state": 0
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"layouts": {
Expand Down
Loading