summaryrefslogtreecommitdiff
path: root/keyboards
diff options
context:
space:
mode:
authorStanley Lai <stanleylai.sg@gmail.com>2017-02-18 21:47:11 -0800
committerStanley Lai <stanleylai.sg@gmail.com>2017-02-18 21:47:11 -0800
commit76b1f392abb2a0cf4a7fa14a01818998f4de4d39 (patch)
tree89e1a84bb0d0ce7b4dd891be2ce15062a014b600 /keyboards
parentd168822477a495091076aa2a36f0c5f7900d9c8a (diff)
XD60: Added BL_TOGG back to keymap, with 6 backlight steps
Diffstat (limited to 'keyboards')
-rw-r--r--keyboards/xd60/config.h7
-rw-r--r--keyboards/xd60/keymaps/stanleylai/keymap.c4
2 files changed, 4 insertions, 7 deletions
diff --git a/keyboards/xd60/config.h b/keyboards/xd60/config.h
index d3052b4038..4bbaec882d 100644
--- a/keyboards/xd60/config.h
+++ b/keyboards/xd60/config.h
@@ -46,12 +46,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MATRIX_COL_PINS { F0, F1, E6, C7, C6, B6, D4, B1, B7, B5, B4, D7, D6, B3 }
#define UNUSED_PINS
-/* Backlight Setup
- * Only 1 level, since XD60's backlight implementation doesn't seem compatible with QMK for variable brightness
- * Use BL_STEP to toggle LEDs instead, as BL_TOGG can be inconsistent (depending on current level)
- */
+/* Backlight Setup */
#define BACKLIGHT_PIN F5
-#define BACKLIGHT_LEVELS 1
+#define BACKLIGHT_LEVELS 6
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW
diff --git a/keyboards/xd60/keymaps/stanleylai/keymap.c b/keyboards/xd60/keymaps/stanleylai/keymap.c
index 4d3032a106..feb2cd1b6d 100644
--- a/keyboards/xd60/keymaps/stanleylai/keymap.c
+++ b/keyboards/xd60/keymaps/stanleylai/keymap.c
@@ -21,8 +21,8 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
// 2: RGB Layer
KEYMAP(
- KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, \
- BL_STEP, RGB_TOG, RGB_MOD, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, \
+ KC_NO, BL_TOGG, BL_STEP, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, \
+ KC_NO, RGB_TOG, RGB_MOD, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, \
KC_NO, RGB_HUI, RGB_SAI, RGB_VAI, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, \
KC_NO, KC_NO, RGB_HUD, RGB_SAD, RGB_VAD,KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, F(1), KC_NO, KC_NO, \
KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO),