diff options
author | QMK Bot <hello@qmk.fm> | 2021-03-10 22:48:53 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2021-03-10 22:48:53 +0000 |
commit | b113772bb1e81b7fc064741f2d9da6d9f5907b63 (patch) | |
tree | 455873cdb9c2a6846e04de23886e18b436e8366d /keyboards/kinesis/kint2pp | |
parent | 40c7ecfdeaf50ab76e10854a84aebfcb82ddb092 (diff) | |
parent | 790f94533c936409e6be56e8b638969b42350180 (diff) |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards/kinesis/kint2pp')
-rw-r--r-- | keyboards/kinesis/kint2pp/config.h | 7 | ||||
-rw-r--r-- | keyboards/kinesis/kint2pp/kint2pp.c | 25 |
2 files changed, 6 insertions, 26 deletions
diff --git a/keyboards/kinesis/kint2pp/config.h b/keyboards/kinesis/kint2pp/config.h index 2acaf9be6e..902c9b24a0 100644 --- a/keyboards/kinesis/kint2pp/config.h +++ b/keyboards/kinesis/kint2pp/config.h @@ -25,7 +25,12 @@ /* 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 /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ #define DEBOUNCE 5 diff --git a/keyboards/kinesis/kint2pp/kint2pp.c b/keyboards/kinesis/kint2pp/kint2pp.c index 7e2b4348c5..856e29c31e 100644 --- a/keyboards/kinesis/kint2pp/kint2pp.c +++ b/keyboards/kinesis/kint2pp/kint2pp.c @@ -1,26 +1 @@ #include "kint2pp.h" - -void matrix_init_kb(void) { - led_init_ports(); - - - matrix_init_user(); -} -void led_init_ports() { - // * Set our LED pins as output - setPinOutput(C3); // Keypad LED - setPinOutput(C4); // ScrLock LED - setPinOutput(C5); // NumLock LED - setPinOutput(C1); // CapsLock LED -} - -bool led_update_kb(led_t led_state) { - bool res = led_update_user(led_state); - if(res) { - writePin(C3, !led_state.compose); - writePin(C4, !led_state.scroll_lock); - writePin(C5, !led_state.num_lock); - writePin(C1, !led_state.caps_lock); - } - return res; -} |