m12og.c 383 B

123456789101112131415161718192021
  1. /**
  2. * m12og.c
  3. */
  4. #include "m12og.h"
  5. void matrix_init_user(void) {
  6. setPinOutput(C6);
  7. setPinOutput(B2);
  8. setPinOutput(B1);
  9. }
  10. bool led_update_kb(led_t led_state) {
  11. bool res = led_update_user(led_state);
  12. if (res) {
  13. writePin(B1, !led_state.num_lock);
  14. writePin(C6, !led_state.caps_lock);
  15. writePin(B2, !led_state.scroll_lock);
  16. }
  17. return res;
  18. }