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.

23 lines
448 B

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