wete.c 459 B

12345678910111213141516171819
  1. #include "wete.h"
  2. void keyboard_pre_init_user(void) {
  3. // Initialize indicator LED pins
  4. setPinOutput(A14); // Num Lock
  5. setPinOutput(A15); // Scroll Lock
  6. setPinOutput(B3); // Caps Lock
  7. }
  8. bool led_update_kb(led_t led_state) {
  9. bool res = led_update_user(led_state);
  10. if (res) {
  11. writePin(A14, !led_state.num_lock);
  12. writePin(A15, !led_state.scroll_lock);
  13. writePin(B3, !led_state.caps_lock);
  14. }
  15. return res;
  16. }