]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboard/atomic/atomic.c
Merge pull request #3 from jackhumbert/master
[qmk_firmware.git] / keyboard / atomic / atomic.c
1 #include "atomic.h"
2
3 __attribute__ ((weak))
4 void matrix_init_user(void) {
5         // leave these blank
6 }
7
8 __attribute__ ((weak))
9 void matrix_scan_user(void) {
10         // leave these blank
11 }
12
13 void matrix_init_kb(void) {
14         // put your keyboard start-up code here
15         // runs once when the firmware starts up
16
17     MCUCR |= (1<<JTD);
18     MCUCR |= (1<<JTD);
19
20 #ifdef BACKLIGHT_ENABLE
21     backlight_init_ports();
22 #endif
23
24     // Turn status LED on
25     DDRE |= (1<<6);
26     PORTE |= (1<<6);
27
28         matrix_init_user();
29 }
30
31 void matrix_scan_kb(void) {
32         // put your looping keyboard code here
33         // runs every cycle (a lot)
34
35         matrix_scan_user();
36 }