phantom.c 520 B

12345678910111213141516171819202122232425262728
  1. #include "phantom.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. led_init_ports();
  17. };
  18. void matrix_scan_kb(void) {
  19. // put your looping keyboard code here
  20. // runs every cycle (a lot)
  21. if (matrix_scan_user) {
  22. (*matrix_scan_user)();
  23. }
  24. };