diff options
Diffstat (limited to 'keyboards/bpiphany/frosty_flake/20130602/20130602.c')
-rw-r--r-- | keyboards/bpiphany/frosty_flake/20130602/20130602.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/keyboards/bpiphany/frosty_flake/20130602/20130602.c b/keyboards/bpiphany/frosty_flake/20130602/20130602.c new file mode 100644 index 0000000000..2c875d1a7f --- /dev/null +++ b/keyboards/bpiphany/frosty_flake/20130602/20130602.c @@ -0,0 +1,24 @@ +#include "frosty_flake.h" + +void keyboard_pre_init_kb() { + setPinOutput(B7); // caps lock + writePinHigh(B7); + setPinOutput(C5); // num 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(C5, !usb_led.num_lock); + writePin(B7, !usb_led.caps_lock); + writePin(C6, !usb_led.scroll_lock); + + return true; +} |