]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/peiorisboards/ixora/ixora.c
Add missing links to features page and sidebar section (#5949)
[qmk_firmware.git] / keyboards / peiorisboards / ixora / ixora.c
1 #include "ixora.h"
2
3 void matrix_init_kb(void) {
4     // put your keyboard start-up code here
5     // runs once when the firmware starts up
6     setPinOutput(A8);
7     setPinOutput(A9);
8     setPinOutput(A10);
9     writePinLow(A8);
10     writePinLow(A9);
11     writePinLow(A10);
12
13     matrix_init_user();
14 }
15
16 void matrix_scan_kb(void) {
17
18     matrix_scan_user();
19 }
20
21 bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
22
23     return process_record_user(keycode, record);
24 }
25
26 void led_set_kb(uint8_t usb_led) {
27     if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
28         writePinHigh(A10);
29     } else {
30         writePinLow(A10);
31     }
32     if (IS_LED_ON(usb_led, USB_LED_NUM_LOCK)) {
33         writePinHigh(A9);
34     } else {
35         writePinLow(A9);
36     }
37     if (IS_LED_ON(usb_led, USB_LED_SCROLL_LOCK)) {
38         writePinHigh(A8);
39     } else {
40         writePinLow(A8);
41     }
42     led_set_user(usb_led);
43 }