From 33b95c5199eb0a3b2977d752496147e3b5cb2792 Mon Sep 17 00:00:00 2001 From: Kai Ryu Date: Thu, 17 Jul 2014 14:32:41 +0900 Subject: [PATCH] Change breathing led to use timer1 --- keyboard/lr94/backlight.c | 2 ++ keyboard/lr94/config.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/keyboard/lr94/backlight.c b/keyboard/lr94/backlight.c index e61b5b4b..beaabd88 100644 --- a/keyboard/lr94/backlight.c +++ b/keyboard/lr94/backlight.c @@ -25,6 +25,8 @@ static const uint8_t backlight_table[] PROGMEM = { 0, 16, 128, 255 }; +inline void backlight_set_raw(uint8_t raw); + /* Backlight pin configuration * PWM: PC6(OC3A) */ diff --git a/keyboard/lr94/config.h b/keyboard/lr94/config.h index bc0759a1..da5a8f3c 100644 --- a/keyboard/lr94/config.h +++ b/keyboard/lr94/config.h @@ -43,10 +43,12 @@ along with this program. If not, see . /* number of backlight levels */ #ifdef BREATHING_LED_ENABLE +#define BREATHING_LED_TIMER1 #define BACKLIGHT_LEVELS 6 #else #define BACKLIGHT_LEVELS 3 #endif +#define BACKLIGHT_CUSTOM /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ #define LOCKING_SUPPORT_ENABLE