aboutsummaryrefslogtreecommitdiff
path: root/keyboards/kinesis/kint2pp
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/kinesis/kint2pp')
-rw-r--r--keyboards/kinesis/kint2pp/config.h7
-rw-r--r--keyboards/kinesis/kint2pp/kint2pp.c25
2 files changed, 6 insertions, 26 deletions
diff --git a/keyboards/kinesis/kint2pp/config.h b/keyboards/kinesis/kint2pp/config.h
index 2acaf9be6..902c9b24a 100644
--- a/keyboards/kinesis/kint2pp/config.h
+++ b/keyboards/kinesis/kint2pp/config.h
@@ -25,7 +25,12 @@
25 25
26/* COL2ROW or ROW2COL */ 26/* COL2ROW or ROW2COL */
27#define DIODE_DIRECTION COL2ROW 27#define DIODE_DIRECTION COL2ROW
28 28
29#define LED_NUM_LOCK_PIN C5
30#define LED_CAPS_LOCK_PIN C1
31#define LED_SCROLL_LOCK_PIN C4
32#define LED_COMPOSE_PIN C3
33#define LED_PIN_ON_STATE 0
29 34
30/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ 35/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
31#define DEBOUNCE 5 36#define DEBOUNCE 5
diff --git a/keyboards/kinesis/kint2pp/kint2pp.c b/keyboards/kinesis/kint2pp/kint2pp.c
index 7e2b4348c..856e29c31 100644
--- a/keyboards/kinesis/kint2pp/kint2pp.c
+++ b/keyboards/kinesis/kint2pp/kint2pp.c
@@ -1,26 +1 @@
1#include "kint2pp.h" #include "kint2pp.h"
2
3void matrix_init_kb(void) {
4 led_init_ports();
5
6
7 matrix_init_user();
8}
9void led_init_ports() {
10 // * Set our LED pins as output
11 setPinOutput(C3); // Keypad LED
12 setPinOutput(C4); // ScrLock LED
13 setPinOutput(C5); // NumLock LED
14 setPinOutput(C1); // CapsLock LED
15}
16
17bool led_update_kb(led_t led_state) {
18 bool res = led_update_user(led_state);
19 if(res) {
20 writePin(C3, !led_state.compose);
21 writePin(C4, !led_state.scroll_lock);
22 writePin(C5, !led_state.num_lock);
23 writePin(C1, !led_state.caps_lock);
24 }
25 return res;
26}