summaryrefslogtreecommitdiffstats
path: root/keyboards/exclusive/e85/hotswap/hotswap.c
diff options
context:
space:
mode:
authorkaylanm <1063516+kaylanm@users.noreply.github.com>2020-11-05 23:58:00 -0500
committerGitHub <noreply@github.com>2020-11-05 20:58:00 -0800
commit5f2c4349543e06821d3c0b724f36e12767a04e54 (patch)
tree877c7577eada36efdb1df974126048c64379acbd /keyboards/exclusive/e85/hotswap/hotswap.c
parentf2eb080aa280ccbab9c9ed624afef2c1765d8e74 (diff)
E85 backlight & LED indicator updates (#10678)
* Enable in-switch backlight on e85 for VIA keymaps. Update LED indicator code for e85 hotswap/soldered PCBs.
Diffstat (limited to 'keyboards/exclusive/e85/hotswap/hotswap.c')
-rw-r--r--keyboards/exclusive/e85/hotswap/hotswap.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/keyboards/exclusive/e85/hotswap/hotswap.c b/keyboards/exclusive/e85/hotswap/hotswap.c
index a5893e6bc5..db14971dab 100644
--- a/keyboards/exclusive/e85/hotswap/hotswap.c
+++ b/keyboards/exclusive/e85/hotswap/hotswap.c
@@ -15,3 +15,18 @@
*/
#include "hotswap.h"
+
+void keyboard_pre_init_kb(void) {
+ setPinOutput(C7);
+ setPinOutput(B5);
+
+ keyboard_pre_init_user();
+}
+
+bool led_update_kb(led_t led_state) {
+ if (led_update_user(led_state)) {
+ writePin(C7, led_state.caps_lock);
+ writePin(B5, led_state.scroll_lock);
+ }
+ return true;
+}