summaryrefslogtreecommitdiff
path: root/keyboards/doro67
diff options
context:
space:
mode:
authorNicholas Shaff <nick@shadedream.com>2019-05-14 21:31:36 -0500
committerDrashna Jaelre <drashna@live.com>2019-05-14 19:31:36 -0700
commit7209266ea1bd8b6bce4d468ea016689602499239 (patch)
treeabe516a6a466f94ec4fdcb537368430daf5d12c3 /keyboards/doro67
parent4ed474b66a5bcb3ea401c4bc76bd736c7db55e58 (diff)
downloadqmk_firmware-7209266ea1bd8b6bce4d468ea016689602499239.tar.gz
qmk_firmware-7209266ea1bd8b6bce4d468ea016689602499239.zip
[Keyboard] Added capslock LED support to the Doro67 Multi PCB. (#5875)
Diffstat (limited to 'keyboards/doro67')
-rw-r--r--keyboards/doro67/multi/multi.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/keyboards/doro67/multi/multi.c b/keyboards/doro67/multi/multi.c
index 477ab245c3..14e3359c1a 100644
--- a/keyboards/doro67/multi/multi.c
+++ b/keyboards/doro67/multi/multi.c
@@ -19,6 +19,7 @@ void matrix_init_kb(void) {
// put your keyboard start-up code here
// runs once when the firmware starts up
+ setPinOutput(E6);
matrix_init_user();
}
@@ -39,5 +40,11 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
+ if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
+ writePinLow(E6);
+ } else {
+ writePinHigh(E6);
+ }
+
led_set_user(usb_led);
}