2016-06-13 18:59:22 -07:00
|
|
|
#include "satan.h"
|
2016-06-21 19:09:41 -07:00
|
|
|
|
2016-06-13 18:59:22 -07:00
|
|
|
void matrix_init_kb(void) {
|
2019-02-28 12:06:26 -08:00
|
|
|
matrix_init_user();
|
|
|
|
led_init_ports();
|
2016-06-13 18:59:22 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
void matrix_scan_kb(void) {
|
2019-02-28 12:06:26 -08:00
|
|
|
matrix_scan_user();
|
2016-06-23 19:18:20 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
void led_init_ports(void) {
|
2019-02-28 12:06:26 -08:00
|
|
|
setPinOutput(B2);
|
2016-06-23 19:18:20 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
void led_set_kb(uint8_t usb_led) {
|
2019-02-28 12:06:26 -08:00
|
|
|
if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
|
|
|
|
// Turn Caps Lock LED on
|
|
|
|
writePinLow(B2);
|
|
|
|
} else {
|
|
|
|
// Turn Caps Lock LED off
|
|
|
|
writePinHigh(B2);
|
|
|
|
}
|
2016-06-23 19:18:20 -07:00
|
|
|
}
|