From bb10a45a1fb905ce5011f3f1b792ee61b2536878 Mon Sep 17 00:00:00 2001 From: Kai Ryu Date: Mon, 22 Sep 2014 10:16:17 +0900 Subject: [PATCH] Fix for new v3 PCB of AKB96 --- keyboard/akb96/backlight.c | 21 +++++++++++++++++++++ keyboard/akb96/ledmap.c | 12 ++++++------ keyboard/akb96/matrix.c | 3 ++- 3 files changed, 29 insertions(+), 7 deletions(-) diff --git a/keyboard/akb96/backlight.c b/keyboard/akb96/backlight.c index d884a605..57521462 100644 --- a/keyboard/akb96/backlight.c +++ b/keyboard/akb96/backlight.c @@ -47,7 +47,11 @@ void backlight_enable(void) softpwm_led_enable(); #else // Turn on PWM +#if defined(REV_V2) DDRB |= (1<> 4) & 0x0F) | (~(PINF) & (1<> 4) & 0x0F) | (~(PINF) & (1<> 2) & 0b00111100); #endif }