You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
400 B
25 lines
400 B
9 years ago
|
#include "satan.h"
|
||
8 years ago
|
|
||
9 years ago
|
void matrix_init_kb(void) {
|
||
6 years ago
|
matrix_init_user();
|
||
|
led_init_ports();
|
||
9 years ago
|
};
|
||
|
|
||
|
void matrix_scan_kb(void) {
|
||
6 years ago
|
matrix_scan_user();
|
||
8 years ago
|
};
|
||
|
|
||
|
void led_init_ports(void) {
|
||
6 years ago
|
setPinOutput(B2);
|
||
8 years ago
|
}
|
||
|
|
||
|
void led_set_kb(uint8_t usb_led) {
|
||
6 years ago
|
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);
|
||
|
}
|
||
8 years ago
|
}
|