summaryrefslogtreecommitdiffstats
path: root/keyboards/dz60/dz60.c
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2017-09-19 16:27:46 +0200
committerGitHub <noreply@github.com>2017-09-19 16:27:46 +0200
commit32d6a8b7ecdc653bd032e2bd32cfb8bb3183c904 (patch)
tree0d5aec8c0182029d893a9e1e75780b3f904250ef /keyboards/dz60/dz60.c
parent0c335270bdb8cae19d7fc00fbab3aa1027aabbcb (diff)
downloadqmk_firmware-32d6a8b7ecdc653bd032e2bd32cfb8bb3183c904.tar.gz
qmk_firmware-32d6a8b7ecdc653bd032e2bd32cfb8bb3183c904.tar.xz
adds DZ60 support (#1734)
* adds support for dz60 * fix dz60 readme
Diffstat (limited to 'keyboards/dz60/dz60.c')
-rw-r--r--keyboards/dz60/dz60.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/keyboards/dz60/dz60.c b/keyboards/dz60/dz60.c
new file mode 100644
index 000000000..fbe39248c
--- /dev/null
+++ b/keyboards/dz60/dz60.c
@@ -0,0 +1,9 @@
+#include "dz60.h"
+
+void led_set_kb(uint8_t usb_led) {
+ if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
+ DDRB |= (1 << 2); PORTB &= ~(1 << 2);
+ } else {
+ DDRB &= ~(1 << 2); PORTB &= ~(1 << 2);
+ }
+} \ No newline at end of file