summaryrefslogtreecommitdiffstats
path: root/keyboards/jj50/rules.mk
diff options
context:
space:
mode:
authorWarmCat <32871908+WarmCatUK@users.noreply.github.com>2018-05-10 17:28:58 +0200
committerDrashna Jaelre <drashna@live.com>2018-05-10 17:28:58 +0200
commit933842067df08e7d0515049509bdd3fa73b334e1 (patch)
tree0e777c72e7f357ec45c9f294d80bda3f5915302e /keyboards/jj50/rules.mk
parentc5264d6d89899f19bdeeaf9e2daeb90531617a48 (diff)
downloadqmk_firmware-933842067df08e7d0515049509bdd3fa73b334e1.tar.gz
qmk_firmware-933842067df08e7d0515049509bdd3fa73b334e1.tar.xz
Backlight and RGB now working for JJ50 (#2929)
* Added support for JJ50 from KPRepublic, no rgb or backlight control yet. Added as a layout of ymd96 at the moment (same microprocessor). Basic keymap with three layers to get started. * Added support for JJ50 * Tidied up jj50 code, backlight and RGB is now working. * Renaming "KEYMAP" to "LAYOUT" to adhere to the new QMK standards.
Diffstat (limited to 'keyboards/jj50/rules.mk')
-rw-r--r--keyboards/jj50/rules.mk20
1 files changed, 17 insertions, 3 deletions
diff --git a/keyboards/jj50/rules.mk b/keyboards/jj50/rules.mk
index 1b7826e50..13e813148 100644
--- a/keyboards/jj50/rules.mk
+++ b/keyboards/jj50/rules.mk
@@ -36,16 +36,30 @@ BOOTMAGIC_ENABLE = yes
MOUSEKEY_ENABLE = no
EXTRAKEY_ENABLE = yes
CONSOLE_ENABLE = no
-COMMAND_ENABLE = no
+COMMAND_ENABLE = yes
BACKLIGHT_ENABLE = yes
RGBLIGHT_ENABLE = yes
RGBLIGHT_CUSTOM_DRIVER = yes
+NKRO_ENABLE = no
+# Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
-OPT_DEFS = -DDEBUG_LEVEL=0
+
+DISABLE_WS2812 = no
+
+KEY_LOCK_ENABLE = yes
+# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
+SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
+
+
+#OPT_DEFS = -DDEBUG_LEVEL=0
# custom matrix setup
CUSTOM_MATRIX = yes
-SRC = matrix.c i2c.c
+SRC = matrix.c i2c.c backlight.c
+
+ifndef QUANTUM_DIR
+ include ../../../../Makefile
+endif
# programming options
PROGRAM_CMD = ./keyboards/ps2avrGB/program $(TARGET).hex