summaryrefslogtreecommitdiff
path: root/keyboards/hineybush
diff options
context:
space:
mode:
authorJosh Hinnebusch <joshhinnebusch@gmail.com>2020-08-24 17:55:49 -0400
committerGitHub <noreply@github.com>2020-08-24 14:55:49 -0700
commit297bda1c1ff818c0a1419d5e5256c605f5edff3b (patch)
treeaddde87b6fbe1acc3d0c612120b24c25b2b14e66 /keyboards/hineybush
parent5772ac8bf68f5e8e003b4a047494ac3fa2065524 (diff)
add num lock indicator functionality to hineybush/h10 (#10100)
* add num lock indicator functionality to h10 * Update keyboards/hineybush/h10/h10.c
Diffstat (limited to 'keyboards/hineybush')
-rw-r--r--keyboards/hineybush/h10/h10.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/keyboards/hineybush/h10/h10.c b/keyboards/hineybush/h10/h10.c
index fbaca7f38e..8c149c1451 100644
--- a/keyboards/hineybush/h10/h10.c
+++ b/keyboards/hineybush/h10/h10.c
@@ -20,10 +20,15 @@
// You can leave any or all of these undefined.
// These are only required if you want to perform custom actions.
-/*
-bool led_update_kb(led_t led_state) {
- // placeholder for LED indicator added to next revision
+void matrix_init_kb(void) {
+ // put your keyboard start-up code here
+ // runs once when the firmware starts up
+ setPinOutput(F7);
+}
- return led_update_user(led_state);
+bool led_update_kb(led_t led_state) {
+ if(led_update_user(led_state)) {
+ writePin(F7, !led_state.num_lock);
+ }
+ return true;
}
-*/