alice.c 387 B

1234567891011121314151617
  1. #include "alice.h"
  2. void matrix_init_board(void){
  3. setPinOutput(A0);
  4. setPinOutput(A1);
  5. setPinOutput(A2);
  6. }
  7. bool led_update_kb(led_t led_state) {
  8. bool runDefault = led_update_user(led_state);
  9. if (runDefault) {
  10. writePin(A0, !led_state.num_lock);
  11. writePin(A1, !led_state.caps_lock);
  12. writePin(A2, !led_state.scroll_lock);
  13. }
  14. return runDefault;
  15. }