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.

28 lines
513 B

  1. #include "%KEYBOARD%.h"
  2. __attribute__ ((weak))
  3. void * matrix_init_user(void) {
  4. // leave these blank
  5. };
  6. __attribute__ ((weak))
  7. void * matrix_scan_user(void) {
  8. // leave these blank
  9. };
  10. void * matrix_init_kb(void) {
  11. // put your keyboard start-up code here
  12. // runs once when the firmware starts up
  13. if (matrix_init_user) {
  14. (*matrix_init_user)();
  15. }
  16. };
  17. void * matrix_scan_kb(void) {
  18. // put your looping keyboard code here
  19. // runs every cycle (a lot)
  20. if (matrix_scan_user) {
  21. (*matrix_scan_user)();
  22. }
  23. };