austin.c 386 B

123456789101112131415161718
  1. #include "austin.h"
  2. void keyboard_pre_init_kb(void) {
  3. setPinOutput(A0);
  4. setPinOutput(A1);
  5. setPinOutput(A2);
  6. keyboard_pre_init_user();
  7. }
  8. bool led_update_kb(led_t led_state) {
  9. if (led_update_user(led_state)) {
  10. writePin(A2, led_state.num_lock);
  11. writePin(A0, led_state.caps_lock);
  12. writePin(A1, led_state.scroll_lock);
  13. }
  14. return true;
  15. }