diff --git a/keyboard/gh60/backlight.c b/keyboard/gh60/backlight.c index 06af677c..3d8f6279 100644 --- a/keyboard/gh60/backlight.c +++ b/keyboard/gh60/backlight.c @@ -1,5 +1,5 @@ /* -Copyright 2013 Kai Ryu +Copyright 2013,2014 Kai Ryu This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/keyboard/gh60/config.h b/keyboard/gh60/config.h index 9e5d028c..6bb2e4ee 100644 --- a/keyboard/gh60/config.h +++ b/keyboard/gh60/config.h @@ -42,12 +42,19 @@ along with this program. If not, see . #define DEBOUNCE 5 /* number of backlight levels */ -#ifdef GH60_REV_CHN +#if defined(GH60_REV_CHN) +#define BACKLIGHT_LEVELS 3 +#elif defined(GH60_REV_CNY) #define BACKLIGHT_LEVELS 3 #else #define BACKLIGHT_LEVELS 1 #endif +#ifdef GH60_REV_CNY +#define LED_MATRIX_ROWS 6 +#define LED_MATRIX_COLS 14 +#endif + /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ #define LOCKING_SUPPORT_ENABLE diff --git a/keyboard/gh60/matrix.c b/keyboard/gh60/matrix.c index ed3270f2..e82fe196 100644 --- a/keyboard/gh60/matrix.c +++ b/keyboard/gh60/matrix.c @@ -141,7 +141,7 @@ uint8_t matrix_key_count(void) /* Column pin configuration * pin: F1 F0 E6 D7 D6 D4 C7 C6 B6 B5 B4 B3 B1 B0 (Rev.A) * pin: F1 F0 E6 D7 D6 D4 C7 C6 B7 B6 B5 B4 B3 B1 (Rev.B) - * pin: F1 F0 E6 D7 D6 D4 C7 C6 B7 B5 B4 B3 B1 B0 (Rev.CHN) + * pin: F1 F0 E6 D7 D6 D4 C7 C6 B7 B5 B4 B3 B1 B0 (Rev.CHN/CNY) */ static void init_cols(void) { @@ -154,7 +154,7 @@ static void init_cols(void) PORTD |= (1<