diff options
| author | MechMerlin <30334081+mechmerlin@users.noreply.github.com> | 2020-10-14 17:37:11 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-15 01:37:11 +0100 |
| commit | 59d503e3b9fa3fe1f6c4cdb56015251732a5c1b0 (patch) | |
| tree | c190bc0a2bc868ad0f820da4fa036c9a3aa4d569 /keyboards/exclusive | |
| parent | b63b2106d818860038821f41596b92759068a3cb (diff) | |
| download | qmk_firmware-59d503e3b9fa3fe1f6c4cdb56015251732a5c1b0.tar.gz qmk_firmware-59d503e3b9fa3fe1f6c4cdb56015251732a5c1b0.zip | |
[keyboard] Add Caps Lock LED Logic to exclusive/e85/soldered (#10639)
* on behalf of VashtaNerada commiting his code to get caps lock led working on the soldered E8d E8.5
* Update keyboards/exclusive/e85/soldered/soldered.c
Co-authored-by: Joel Challis <git@zvecr.com>
Co-authored-by: Joel Challis <git@zvecr.com>
Diffstat (limited to 'keyboards/exclusive')
| -rw-r--r-- | keyboards/exclusive/e85/soldered/soldered.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/keyboards/exclusive/e85/soldered/soldered.c b/keyboards/exclusive/e85/soldered/soldered.c index e01221a2c..0a7de55ce 100644 --- a/keyboards/exclusive/e85/soldered/soldered.c +++ b/keyboards/exclusive/e85/soldered/soldered.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* Copyright 2020 MechMerlin | 1 | /* Copyright 2020 VashtaNerada |
| 2 | * | 2 | * |
| 3 | * This program is free software: you can redistribute it and/or modify | 3 | * This program is free software: you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License as published by | 4 | * it under the terms of the GNU General Public License as published by |
| @@ -15,3 +15,16 @@ | |||
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | #include "soldered.h" | 17 | #include "soldered.h" |
| 18 | |||
| 19 | void keyboard_pre_init_kb(void) { | ||
| 20 | setPinOutput(C7); | ||
| 21 | |||
| 22 | keyboard_pre_init_user(); | ||
| 23 | } | ||
| 24 | |||
| 25 | bool led_update_kb(led_t led_state) { | ||
| 26 | if (led_update_user(led_state)) { | ||
| 27 | writePin(C7, led_state.caps_lock); | ||
| 28 | } | ||
| 29 | return true; | ||
| 30 | } | ||
