diff options
author | Ananya Kirti <AnanyaKirti@users.noreply.github.com> | 2021-08-08 10:11:15 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-07 21:41:15 -0700 |
commit | b046bffcb8367b4238273e3ccb7de9b799fbec7c (patch) | |
tree | e787afa0716feb3745fad0c3cd863ab87f91444e /keyboards/hp69/keymaps/via | |
parent | bc2b73f997743a164bfa19541a25209b4f276771 (diff) |
[Keyboard] Added CapsLED and ScrollLock LEDs (#13837)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Diffstat (limited to 'keyboards/hp69/keymaps/via')
-rw-r--r-- | keyboards/hp69/keymaps/via/keymap.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/keyboards/hp69/keymaps/via/keymap.c b/keyboards/hp69/keymaps/via/keymap.c index d47308c8ba..d72bdbf0b1 100644 --- a/keyboards/hp69/keymaps/via/keymap.c +++ b/keyboards/hp69/keymaps/via/keymap.c @@ -46,4 +46,14 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { ), -};
\ No newline at end of file +}; + + +void matrix_scan_user(void) { + writePin(A7, layer_state_is(1)); +} + +bool led_update_user(led_t led_state) { + writePin(LED_CAPS_LOCK_PIN, !led_state.caps_lock); + return false; +}; |