aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/clueboard/rev1/rev1.c
diff options
context:
space:
mode:
authorGravatar di0ib <git@porkhash.net>2016-08-07 20:20:16 -1000
committerGravatar di0ib <git@porkhash.net>2016-08-07 20:20:16 -1000
commita36b2a0756761513a9853af78d61e8b666b34aa7 (patch)
treea783cea131f5afe22788809a069b1a365a9c3fba /keyboards/clueboard/rev1/rev1.c
parent8610481c372e9de02fe1ec7b77a9f3598a72a372 (diff)
parent213cb2c24306e198e717fc162806201567666f36 (diff)
downloadqmk_firmware-a36b2a0756761513a9853af78d61e8b666b34aa7.tar.gz
Merge remote-tracking branch 'refs/remotes/jackhumbert/master'
Diffstat (limited to 'keyboards/clueboard/rev1/rev1.c')
-rw-r--r--keyboards/clueboard/rev1/rev1.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/keyboards/clueboard/rev1/rev1.c b/keyboards/clueboard/rev1/rev1.c
index 520a869e5..90fc6956c 100644
--- a/keyboards/clueboard/rev1/rev1.c
+++ b/keyboards/clueboard/rev1/rev1.c
@@ -1 +1,17 @@
#include "rev1.h"
+
+void led_init_ports() {
+ // * Set our LED pins as output
+ DDRF |= (1<<0);
+}
+
+void led_set_kb(uint8_t usb_led) {
+ DDRF |= (1<<0);
+ if (usb_led & (1<<USB_LED_CAPS_LOCK)) {
+ // Turn capslock on
+ PORTF |= (1<<0);
+ } else {
+ // Turn capslock off
+ PORTF &= ~(1<<0);
+ }
+}