diff options
author | William Chang <william@factual.com> | 2019-11-20 22:17:07 -0800 |
---|---|---|
committer | William Chang <william@factual.com> | 2019-11-20 22:17:07 -0800 |
commit | e7f4d56592b3975c38af329e77b4efd9108495e8 (patch) | |
tree | 0a416bccbf70bfdbdb9ffcdb3bf136b47378c014 /keyboards/gh60/satan/satan.c | |
parent | 71493b2f9bbd5f3d18373c518fa14ccafcbf48fc (diff) | |
parent | 8416a94ad27b3ff058576f09f35f0704a8b39ff3 (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'keyboards/gh60/satan/satan.c')
-rw-r--r-- | keyboards/gh60/satan/satan.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/keyboards/gh60/satan/satan.c b/keyboards/gh60/satan/satan.c new file mode 100644 index 0000000000..8542a57c43 --- /dev/null +++ b/keyboards/gh60/satan/satan.c @@ -0,0 +1,24 @@ +#include "satan.h" + +void matrix_init_kb(void) { + matrix_init_user(); + led_init_ports(); +}; + +void matrix_scan_kb(void) { + matrix_scan_user(); +}; + +void led_init_ports(void) { + setPinOutput(B2); +} + +void led_set_kb(uint8_t usb_led) { + 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); + } +} |