You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
498 B

  1. #include "do60.h"
  2. extern inline void setdefaultrgb(void);
  3. void matrix_init_kb(void) {
  4. // Keyboard start-up code goes here
  5. // Runs once when the firmware starts up
  6. matrix_init_user();
  7. led_init_ports();
  8. setdefaultrgb();
  9. };
  10. void led_init_ports(void) {
  11. // Set caps lock LED pin as output
  12. setPinOutput(B2);
  13. // Default to off
  14. writePinHigh(B2);
  15. }
  16. bool led_update_kb(led_t led_state) {
  17. if(led_update_user(led_state)) {
  18. writePin(B2, !led_state.caps_lock);
  19. }
  20. return true;
  21. }