]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - users/wanleg/rules.mk
add keyboards/mxss/rgblight.h from e661f1559:quantum/rgblight.h (#5461)
[qmk_firmware.git] / users / wanleg / rules.mk
index 8dcc911cefde05dce499c7d5bfdad7d97ea11b7b..b069cd8d387409d9d925cfd6587278b852202ff4 100644 (file)
@@ -1,19 +1,39 @@
-ifeq ($(strip $(KEYBOARD)), lets_split_rev2)
-SRC += ../../keyboards/lets_split/lets_split.c
-endif
-
-SRC += wanleg.c tapdances.c 
+SRC += wanleg.c tapdances.c
 
-ifndef TAP_DANCE_ENABLE
 TAP_DANCE_ENABLE = yes
-endif
-
-ifndef MOUSEKEY_ENABLE
 MOUSEKEY_ENABLE = yes
-endif
 
 #If using a ProMicro and it has the QMK DFU bootloader instead of Caterina,
 #run "make <keyboard>:<keymap> dfu=qmk" when compiling to ensure it is flagged properly after being flashed
 ifeq ($(strip $(dfu)), qmk)
     BOOTLOADER = qmk-dfu
 endif
+
+#use alternate settings for boards using ProMicro instead of Micro
+#example usage: make 4x4:wanleg PM=yes
+ifeq ($(strip $(PM)), yes)
+       OPT_DEFS += -DPRO_MICRO
+endif
+
+#use alternate settings for boards using "Adafruit Feather 32u4 Bluefruit LE" instead of Micro
+#example usage: make 5x5:wanleg BT=yes
+ifeq ($(strip $(BT)), yes)
+  #opt_defs for alternate pin usage
+  OPT_DEFS += -DBLUEFRUIT
+  #Adafruit Bluefruit controller settings
+  BLUETOOTH = AdafruitBLE
+  BLUETOOTH_ENABLE = yes
+  F_CPU = 8000000
+  CONSOLE_ENABLE = no          # Console for debug(+400)
+  COMMAND_ENABLE = no          # Commands for debug and configuration
+  RGBLIGHT_ENABLE = no        # Enable keyboard RGB underglow
+endif
+
+#move numpad to Left/Centre/Right(default) on 5x15 boards
+#example usage: make 4x4:wanleg padc=yes
+ifeq ($(strip $(padc)), yes)
+       OPT_DEFS += -DPADC
+endif
+ifeq ($(strip $(padl)), yes)
+       OPT_DEFS += -DPADL
+endif
\ No newline at end of file