xd68.c 429 B

12345678910111213141516171819202122
  1. #include "xd68.h"
  2. void matrix_init_kb(void) {
  3. // put your keyboard start-up code here
  4. // runs once when the firmware starts up
  5. matrix_init_user();
  6. led_init_ports();
  7. }
  8. void led_init_ports(void) {
  9. // * Set our LED pins as output
  10. setPinOutput(B2);
  11. writePinHigh(B2);
  12. }
  13. bool led_update_kb(led_t led_state) {
  14. if(led_update_user(led_state)) {
  15. writePin(B2, !led_state.caps_lock);
  16. }
  17. return true;
  18. }