summaryrefslogtreecommitdiffstats
path: root/keyboards/xd60/config.h
diff options
context:
space:
mode:
authorStanley Lai <stanleylai.sg@gmail.com>2017-02-14 03:09:02 +0100
committerStanley Lai <stanleylai.sg@gmail.com>2017-02-14 03:09:02 +0100
commit3272821d32e79cafbf4d96dae811c5d57954a4b1 (patch)
tree8916df1588b07b7f8a5f25e47b0b5d5c06f68565 /keyboards/xd60/config.h
parenta8eba1bddaf55224939a86bfa4d8e1b53e1d82db (diff)
downloadqmk_firmware-3272821d32e79cafbf4d96dae811c5d57954a4b1.tar.gz
qmk_firmware-3272821d32e79cafbf4d96dae811c5d57954a4b1.tar.xz
Added support for XD60v2 with RGB underglow and LED backlight support
Diffstat (limited to 'keyboards/xd60/config.h')
-rw-r--r--keyboards/xd60/config.h22
1 files changed, 18 insertions, 4 deletions
diff --git a/keyboards/xd60/config.h b/keyboards/xd60/config.h
index 13ae29063..d3052b403 100644
--- a/keyboards/xd60/config.h
+++ b/keyboards/xd60/config.h
@@ -25,8 +25,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define PRODUCT_ID 0x6060
#define DEVICE_VER 0x0001
#define MANUFACTURER XIUDI
-#define PRODUCT XD60
-#define DESCRIPTION XD60 Keyboard by XIUDI
+#define PRODUCT XD60v2
+#define DESCRIPTION XD60 v2 Keyboard PCB by XIUDI
/* key matrix size */
#define MATRIX_ROWS 5
@@ -46,14 +46,28 @@ 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)
+ */
+#define BACKLIGHT_PIN F5
+#define BACKLIGHT_LEVELS 1
+
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW
/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
#define DEBOUNCING_DELAY 5
-/* number of backlight levels */
-#define BACKLIGHT_LEVELS 3
+/* RGB Underglow
+ * F6 PIN for XD60v2 that has pre-soldered WS2812 LEDs
+ */
+#define RGB_DI_PIN F6
+#define RGBLIGHT_ANIMATIONS
+#define RGBLED_NUM 6 // Number of LEDs
+#define RGBLIGHT_HUE_STEP 10
+#define RGBLIGHT_SAT_STEP 17
+#define RGBLIGHT_VAL_STEP 17
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE