2016-06-14 03:59:22 +02:00
|
|
|
#include "satan.h"
|
2016-06-22 04:09:41 +02:00
|
|
|
|
2016-06-14 03:59:22 +02:00
|
|
|
void matrix_init_kb(void) {
|
2019-02-28 21:06:26 +01:00
|
|
|
matrix_init_user();
|
|
|
|
led_init_ports();
|
2016-06-14 03:59:22 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
void matrix_scan_kb(void) {
|
2019-02-28 21:06:26 +01:00
|
|
|
matrix_scan_user();
|
2016-06-24 04:18:20 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
void led_init_ports(void) {
|
2019-02-28 21:06:26 +01:00
|
|
|
setPinOutput(B2);
|
2016-06-24 04:18:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void led_set_kb(uint8_t usb_led) {
|
2019-02-28 21:06:26 +01: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-24 04:18:20 +02:00
|
|
|
}
|