1
0
Fork 0

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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
979 changed files with 1935 additions and 2171 deletions

View file

@ -21,12 +21,6 @@
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW
#define LED_NUM_LOCK_PIN C5
#define LED_CAPS_LOCK_PIN C1
#define LED_SCROLL_LOCK_PIN C4
#define LED_COMPOSE_PIN C3
#define LED_PIN_ON_STATE 0
#define IGNORE_MOD_TAP_INTERRUPT
// The Teensy 2++ consumes about 60 mA of current at its full speed of 16 MHz as

View file

@ -6,6 +6,13 @@
"pid": "0x6060",
"device_version": "0.0.2"
},
"indicators": {
"caps_lock": "C1",
"num_lock": "C5",
"scroll_lock": "C4",
"compose": "C3",
"on_state": 0
},
"processor": "at90usb1286",
"bootloader": "halfkay",
"debounce": 20

View file

@ -43,10 +43,4 @@
// https://forum.pjrc.com/threads/47256-What-is-the-power-consumption-of-the-Teensy-3-6
#define USB_MAX_POWER_CONSUMPTION 100
#define LED_PIN_ON_STATE 0
#define LED_NUM_LOCK_PIN A14
#define LED_CAPS_LOCK_PIN C7
#define LED_SCROLL_LOCK_PIN A5
#define LED_COMPOSE_PIN E26
#define EEPROM_SIZE 4096

View file

@ -6,6 +6,13 @@
"pid": "0x345C",
"device_version": "0.0.1"
},
"indicators": {
"caps_lock": "C7",
"num_lock": "A14",
"scroll_lock": "A5",
"compose": "E26",
"on_state": 0
},
"processor": "MK66FX1M0",
"bootloader": "halfkay",
"debounce": 20

View file

@ -77,9 +77,3 @@
// in clock cycles
#define GPIO_INPUT_PIN_DELAY 0
#define LED_PIN_ON_STATE 0
#define LED_NUM_LOCK_PIN LINE_PIN26
#define LED_CAPS_LOCK_PIN LINE_PIN12
#define LED_SCROLL_LOCK_PIN LINE_PIN25
#define LED_COMPOSE_PIN LINE_PIN24

View file

@ -6,5 +6,12 @@
"pid": "0x345C",
"device_version": "0.0.1"
},
"indicators": {
"caps_lock": "LINE_PIN12",
"num_lock": "LINE_PIN26",
"scroll_lock": "LINE_PIN25",
"compose": "LINE_PIN24",
"on_state": 0
},
"debounce": 20
}

View file

@ -78,17 +78,3 @@
// in clock cycles
#define GPIO_INPUT_PIN_DELAY 0
// The default "1" results in LEDs being on when they should be off and
// the other way around.
#define LED_PIN_ON_STATE 0
// Discussion about which Teensy LC pins can be used for driving staus LEDs:
// https://github.com/kinx-project/kint/issues/55
// Discussion about using Neopixel LEDs:
// https://github.com/kinx-project/kint/issues/32
// Available pins can be seen in:
// /lib/chibios-contrib/os/hal/boards/PJRC_TEENSY_LC/board.h
#define LED_CAPS_LOCK_PIN LINE_PIN12
#define LED_SCROLL_LOCK_PIN LINE_PIN25
#define LED_COMPOSE_PIN LINE_PIN24

View file

@ -6,6 +6,12 @@
"pid": "0x345C",
"device_version": "0.0.1"
},
"indicators": {
"caps_lock": "LINE_PIN12",
"scroll_lock": "LINE_PIN25",
"compose": "LINE_PIN24",
"on_state": 0
},
"processor": "MKL26Z64",
"bootloader": "halfkay",
"debounce": 20

View file

@ -20,9 +20,3 @@
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW
#define LED_NUM_LOCK_PIN D4
#define LED_CAPS_LOCK_PIN E6
#define LED_SCROLL_LOCK_PIN C6
#define LED_COMPOSE_PIN D7
#define LED_PIN_ON_STATE 0

View file

@ -6,6 +6,13 @@
"pid": "0x6060",
"device_version": "0.0.3"
},
"indicators": {
"caps_lock": "E6",
"num_lock": "D4",
"scroll_lock": "C6",
"compose": "D7",
"on_state": 0
},
"processor": "atmega32u4",
"bootloader": "caterina"
}

View file

@ -22,12 +22,6 @@
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW
#define LED_NUM_LOCK_PIN F2
#define LED_CAPS_LOCK_PIN F3
#define LED_SCROLL_LOCK_PIN F1
#define LED_COMPOSE_PIN F0
#define LED_PIN_ON_STATE 0
/* don't know if this should be defined at the board or top level. Assuming board
#define MOUSEKEY_DELAY 100
#define MOUSEKEY_INTERVAL 20

View file

@ -6,6 +6,13 @@
"pid": "0x6060",
"device_version": "0.0.2"
},
"indicators": {
"caps_lock": "F3",
"num_lock": "F2",
"scroll_lock": "F1",
"compose": "F0",
"on_state": 0
},
"processor": "at90usb1286",
"bootloader": "halfkay"
}