]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboard/planck/planck.c
added ergodox
[qmk_firmware.git] / keyboard / planck / planck.c
1 #include "planck.h"
2
3 __attribute__ ((weak))
4 void * matrix_init_user(void) {
5
6 };
7
8 __attribute__ ((weak))
9 void * matrix_scan_user(void) {
10
11 };
12
13 void * matrix_init_kb(void) {
14         #ifdef BACKLIGHT_ENABLE
15         backlight_init_ports();
16         #endif
17
18     // Turn status LED on
19     DDRE |= (1<<6);
20     PORTE |= (1<<6);
21
22         if (matrix_init_user) {
23                 (*matrix_init_user)();
24         }
25 };
26
27 void * matrix_scan_kb(void) {
28         if (matrix_scan_user) {
29                 (*matrix_scan_user)();
30         }
31 };