From cb0e102adb4a8accd4f7210153cbcc3e5fa183ac Mon Sep 17 00:00:00 2001 From: Ruiqi Mao Date: Mon, 11 Jul 2016 01:18:07 -0700 Subject: fixed clueboard LED pin assignments and matrix documentation --- keyboards/clueboard/rev2/rev2.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'keyboards/clueboard/rev2/rev2.c') diff --git a/keyboards/clueboard/rev2/rev2.c b/keyboards/clueboard/rev2/rev2.c index 7a8ec368e6..1a35b87b84 100644 --- a/keyboards/clueboard/rev2/rev2.c +++ b/keyboards/clueboard/rev2/rev2.c @@ -45,3 +45,19 @@ void backlight_set(uint8_t level) { PORTD &= ~(1<<4); // Arrows } } + +void led_init_ports() { + // * Set our LED pins as output + DDRB |= (1<<4); +} + +void led_set_kb(uint8_t usb_led) { + DDRB |= (1<<4); + if (usb_led & (1<