1
0
Fork 0
forked from forks/qmk_firmware
qmk_firmware/keyboards/bpiphany/frosty_flake/20140521/20140521.c
Andrew Missel 4c080be8e8
[Keyboard] Bathroom Epiphanies Frosty Flake rev 20130602 (#15365)
* add optional support for Frosty Flake rev 20130602

* update documentation with instructions on building for rev 20130602

* support revisions using subfolders instead of preprocessor directives

* rules.mk cleanup
2022-01-08 13:22:14 -08:00

25 lines
534 B
C

#include "frosty_flake.h"
void keyboard_pre_init_kb() {
setPinOutput(B7); // num lock
writePinHigh(B7);
setPinOutput(C5); // caps lock
writePinHigh(C7);
setPinOutput(C6); // scroll lock
writePinHigh(C6);
keyboard_pre_init_user();
}
bool led_update_kb(led_t usb_led) {
// user requests no further processing
if (!led_update_user(usb_led))
return true;
writePin(B7, !usb_led.caps_lock);
writePin(C5, !usb_led.num_lock);
writePin(C6, !usb_led.scroll_lock);
return true;
}