summaryrefslogtreecommitdiff
path: root/keyboards/hineybush/h87a/h87a.c
diff options
context:
space:
mode:
authorMechMerlin <30334081+mechmerlin@users.noreply.github.com>2020-02-24 12:04:40 -0800
committerGitHub <noreply@github.com>2020-02-24 12:04:40 -0800
commitef8878fba5d3786e3f9c66436da63a560cd36ac9 (patch)
tree43a601cc661445a7389bd0f6125afe93c6f1c6dc /keyboards/hineybush/h87a/h87a.c
parentf673c965ba79f5354c1634466ef2167304ce9f35 (diff)
Hineybush h87a lock indicators (#8237)
* move lighting code from VIA into the keyboard's .c file so that every keymap can access it * after some serious conversations with default and wkl, they agreed to let me modify their keymaps. They weren't too happy
Diffstat (limited to 'keyboards/hineybush/h87a/h87a.c')
-rw-r--r--keyboards/hineybush/h87a/h87a.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/keyboards/hineybush/h87a/h87a.c b/keyboards/hineybush/h87a/h87a.c
index c3bb890806..a3f511ffcc 100644
--- a/keyboards/hineybush/h87a/h87a.c
+++ b/keyboards/hineybush/h87a/h87a.c
@@ -18,7 +18,8 @@
void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
-
+ setPinOutput(D5);
+ setPinOutput(E6);
matrix_init_user();
}
@@ -42,6 +43,14 @@ void led_set_kb(uint8_t usb_led) {
led_set_user(usb_led);
}
+bool led_update_kb(led_t led_state) {
+ if(led_update_user(led_state)) {
+ writePin(D5, !led_state.caps_lock);
+ writePin(E6, !led_state.scroll_lock);
+ }
+ return true;
+}
+
void eeconfig_init_kb(void) { // EEPROM is getting reset!
rgblight_enable(); // Enable RGB by default
rgblight_sethsv(0, 255, 128); // Set default HSV - red hue, full saturation, medium brightness