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