]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboard/preonic/preonic.c
Merge pull request #267 from nrrkeene/master
[qmk_firmware.git] / keyboard / preonic / preonic.c
1 #include "preonic.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 __attribute__ ((weak))
14 void process_action_user(keyrecord_t *record) {
15
16 };
17
18 void matrix_init_kb(void) {
19         #ifdef BACKLIGHT_ENABLE
20         backlight_init_ports();
21         #endif
22
23         #ifdef RGBLIGHT_ENABLE
24                 rgblight_init();
25         #endif
26
27
28     // Turn status LED on
29     DDRE |= (1<<6);
30     PORTE |= (1<<6);
31
32         matrix_init_user();
33 };
34
35 void matrix_scan_kb(void) {
36         matrix_scan_user();
37 };
38
39 void process_action_kb(keyrecord_t *record) {
40         process_action_user(record);
41 }