phantom.c 473 B

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