2017-03-18 22:38:03 +00:00
|
|
|
#include "frosty_flake.h"
|
|
|
|
|
2020-03-02 05:17:09 +00:00
|
|
|
void keyboard_pre_init_kb() {
|
2022-01-24 15:57:50 +00:00
|
|
|
setPinOutput(B7); // caps lock
|
2020-03-02 05:17:09 +00:00
|
|
|
writePinHigh(B7);
|
2022-01-24 15:57:50 +00:00
|
|
|
setPinOutput(C5); // num lock
|
2020-03-02 05:17:09 +00:00
|
|
|
writePinHigh(C7);
|
|
|
|
setPinOutput(C6); // scroll lock
|
|
|
|
writePinHigh(C6);
|
|
|
|
|
|
|
|
keyboard_pre_init_user();
|
2017-03-18 22:38:03 +00:00
|
|
|
}
|
|
|
|
|
2020-03-02 05:17:09 +00:00
|
|
|
bool led_update_kb(led_t usb_led) {
|
|
|
|
// user requests no further processing
|
|
|
|
if (!led_update_user(usb_led))
|
|
|
|
return true;
|
2017-03-18 22:38:03 +00:00
|
|
|
|
2022-01-24 15:57:50 +00:00
|
|
|
writePin(C5, !usb_led.num_lock);
|
|
|
|
writePin(B7, !usb_led.caps_lock);
|
2020-03-02 05:17:09 +00:00
|
|
|
writePin(C6, !usb_led.scroll_lock);
|
2017-03-18 22:38:03 +00:00
|
|
|
|
2020-03-02 05:17:09 +00:00
|
|
|
return true;
|
2017-03-18 22:38:03 +00:00
|
|
|
}
|