From 32d6a8b7ecdc653bd032e2bd32cfb8bb3183c904 Mon Sep 17 00:00:00 2001 From: Jack Humbert Date: Tue, 19 Sep 2017 10:27:46 -0400 Subject: adds DZ60 support (#1734) * adds support for dz60 * fix dz60 readme --- keyboards/dz60/dz60.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 keyboards/dz60/dz60.c (limited to 'keyboards/dz60/dz60.c') 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 -- cgit v1.2.3-24-g4f1b