]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/handwired/traveller/traveller.c
adding traveller keyboard
[qmk_firmware.git] / keyboards / handwired / traveller / traveller.c
1 #include "traveller.h"
2
3 __attribute__ ((weak))
4 void matrix_init_user(void) {
5         // leave this function blank - it can be defined in a keymap file
6 };
7
8 __attribute__ ((weak))
9 void matrix_scan_user(void) {
10         // leave this function blank - it can be defined in a keymap file
11 }
12
13 __attribute__ ((weak))
14 void process_action_user(keyrecord_t *record) {
15         // leave this function blank - it can be defined in a keymap file
16 }
17
18 __attribute__ ((weak))
19 void led_set_user(uint8_t usb_led) {
20         // leave this function blank - it can be defined in a keymap file
21 }
22
23 void matrix_init_kb(void) {
24         // put your keyboard start-up code here
25         // runs once when the firmware starts up
26
27 #ifdef RGBLIGHT_ENABLE
28         rgblight_init();
29         rgblight_mode(1); // solid, no timer
30         rgblight_setrgb(0,20,0);// dim green, happens to be same as _QW
31 #endif
32
33 // Turn status LED on
34         DDRC |= (1<<7);
35         PORTC |= (1<<7);
36
37         matrix_init_user();
38 }
39
40
41 void matrix_scan_kb(void) {
42         // put your looping keyboard code here
43         // runs every cycle (a lot)
44
45         matrix_scan_user();
46 }
47
48 bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
49         // put your per-action keyboard code here
50         // runs for every action, just before processing by the firmware
51
52         return process_record_user(keycode, record);
53 }
54
55 void led_set_kb(uint8_t usb_led) {
56         // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
57
58         led_set_user(usb_led);
59 }
60
61