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