Browse Source

[Keyboard] Fix frosty_flake LED pin assignment (#16000)

4c080be seemed to swap the LED pins for the 20130602 and 20140521
variants. 20140521 is fine now, 20130602 untested but per the
schematics at https://deskthority.net/wiki/Costar_replacement_controllers
it seems correct.
pull/15934/head
tofurky 2 years ago
committed by GitHub
parent
commit
6cc4e32e61
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions
  1. +4
    -4
      keyboards/bpiphany/frosty_flake/20130602/20130602.c
  2. +2
    -2
      keyboards/bpiphany/frosty_flake/20140521/20140521.c

+ 4
- 4
keyboards/bpiphany/frosty_flake/20130602/20130602.c View File

@ -1,9 +1,9 @@
#include "frosty_flake.h"
void keyboard_pre_init_kb() {
setPinOutput(B7); // num lock
setPinOutput(B7); // caps lock
writePinHigh(B7);
setPinOutput(C5); // caps lock
setPinOutput(C5); // num lock
writePinHigh(C7);
setPinOutput(C6); // scroll lock
writePinHigh(C6);
@ -16,8 +16,8 @@ bool led_update_kb(led_t usb_led) {
if (!led_update_user(usb_led))
return true;
writePin(C5, !usb_led.caps_lock);
writePin(B7, !usb_led.num_lock);
writePin(C5, !usb_led.num_lock);
writePin(B7, !usb_led.caps_lock);
writePin(C6, !usb_led.scroll_lock);
return true;


+ 2
- 2
keyboards/bpiphany/frosty_flake/20140521/20140521.c View File

@ -16,8 +16,8 @@ bool led_update_kb(led_t usb_led) {
if (!led_update_user(usb_led))
return true;
writePin(B7, !usb_led.caps_lock);
writePin(C5, !usb_led.num_lock);
writePin(C5, !usb_led.caps_lock);
writePin(B7, !usb_led.num_lock);
writePin(C6, !usb_led.scroll_lock);
return true;


Loading…
Cancel
Save