preonic.c 581 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #include "preonic.h"
  2. __attribute__ ((weak))
  3. void matrix_init_user(void) {
  4. };
  5. __attribute__ ((weak))
  6. void matrix_scan_user(void) {
  7. };
  8. __attribute__ ((weak))
  9. void process_action_user(keyrecord_t *record) {
  10. };
  11. void matrix_init_kb(void) {
  12. #ifdef BACKLIGHT_ENABLE
  13. backlight_init_ports();
  14. #endif
  15. #ifdef RGBLIGHT_ENABLE
  16. rgblight_init();
  17. #endif
  18. // Turn status LED on
  19. DDRE |= (1<<6);
  20. PORTE |= (1<<6);
  21. matrix_init_user();
  22. };
  23. void matrix_scan_kb(void) {
  24. matrix_scan_user();
  25. };
  26. void process_action_kb(keyrecord_t *record) {
  27. process_action_user(record);
  28. }