From 3302258abd8929e03c9af71393afc5c9d6947c23 Mon Sep 17 00:00:00 2001 From: Stanley Lai Date: Sun, 19 Jun 2016 20:29:42 -0700 Subject: Added WS2812 support for KC60 (#419) * Added WS2812 support for KC60 * Reorganized WS2812 support into its own keymap * Fixed relative link in README * Moved WS2812 mention in README to the bottom * Fixed titling in WS2812 README * Reverted KC60 Makefile and default keymap back * Moved RGB specific config.h to ws2812 keymap folder --- keyboard/kc60/kc60.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'keyboard/kc60/kc60.c') diff --git a/keyboard/kc60/kc60.c b/keyboard/kc60/kc60.c index 0a578b2b8..64c0675cd 100644 --- a/keyboard/kc60/kc60.c +++ b/keyboard/kc60/kc60.c @@ -62,7 +62,7 @@ void backlight_init_ports() DDRB |= (1<<6); PORTB &= ~(1<<6); - // Use full 16-bit resolution. + // Use full 16-bit resolution. ICR1 = 0xFFFF; // I could write a wall of text here to explain... but TL;DW @@ -99,7 +99,7 @@ void backlight_set(uint8_t level) // Set the brightness CHANNEL = 0xFFFF; } - else + else { // Turn on PWM control of PB6 TCCR1A |= _BV(COM1B1); -- cgit v1.2.3