preonic.c 427 B

1234567891011121314151617181920212223242526272829303132
  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. void matrix_init_kb(void) {
  9. #ifdef BACKLIGHT_ENABLE
  10. backlight_init_ports();
  11. #endif
  12. #ifdef RGBLIGHT_ENABLE
  13. rgblight_init();
  14. #endif
  15. // Turn status LED on
  16. DDRE |= (1<<6);
  17. PORTE |= (1<<6);
  18. matrix_init_user();
  19. };
  20. void matrix_scan_kb(void) {
  21. matrix_scan_user();
  22. };