diff options
| author | Michael Stapelberg <stapelberg@users.noreply.github.com> | 2020-07-27 20:44:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-27 11:44:05 -0700 |
| commit | 5cbac94d08257a6149c5717d7f25efab7af9c0fa (patch) | |
| tree | 53248fcae9cb29da470a56d67b7c926657289d9a /keyboards/kinesis/kint2pp/kint2pp.c | |
| parent | e937fc451379d773184068fd07b9f0a2aaaa6784 (diff) | |
| download | qmk_firmware-5cbac94d08257a6149c5717d7f25efab7af9c0fa.tar.gz qmk_firmware-5cbac94d08257a6149c5717d7f25efab7af9c0fa.zip | |
[Keyboard] add support for the kinT kinesis keyboard controller (kint2pp variant) (#9687)
* branch keyboards/kinesis/kint2pp from keyboards/kinesis/stapelberg
Changes will be made in the next commit
* [Keyboard] update wiring for kinT (kint2pp variant)
* add QMK plumbing
* Apply zvecr’s suggestions from code review
* Update keyboards/kinesis/kint2pp/config.h
* Update keyboards/kinesis/kint2pp/config.h
* remove superfluous config.h include
Diffstat (limited to 'keyboards/kinesis/kint2pp/kint2pp.c')
| -rw-r--r-- | keyboards/kinesis/kint2pp/kint2pp.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/keyboards/kinesis/kint2pp/kint2pp.c b/keyboards/kinesis/kint2pp/kint2pp.c new file mode 100644 index 000000000..7e2b4348c --- /dev/null +++ b/keyboards/kinesis/kint2pp/kint2pp.c | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | #include "kint2pp.h" | ||
| 2 | |||
| 3 | void matrix_init_kb(void) { | ||
| 4 | led_init_ports(); | ||
| 5 | |||
| 6 | |||
| 7 | matrix_init_user(); | ||
| 8 | } | ||
| 9 | void 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 | |||
| 17 | bool 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 | } | ||
