From d004baf7271b808143c87b8b8816a9525ace2e1f Mon Sep 17 00:00:00 2001 From: Kai Ryu Date: Tue, 8 Apr 2014 18:02:20 +0900 Subject: [PATCH] Add backlight level support for gh60 revB --- keyboard/gh60/backlight.c | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/keyboard/gh60/backlight.c b/keyboard/gh60/backlight.c index 25fbc833..ee5aad9a 100644 --- a/keyboard/gh60/backlight.c +++ b/keyboard/gh60/backlight.c @@ -72,14 +72,39 @@ void backlight_set(uint8_t level) } } #else +static const uint8_t backlight_table[] PROGMEM = { + 0, 16, 128, 255 +}; + void backlight_set(uint8_t level) { if (level > 0) { - DDRF |= (1<