]> git.donarmstrong.com Git - qmk_firmware.git/blob - users/wanleg/rules.mk
[Keyboard] Snagpad Configurator bugfix and readme refactor (#6381)
[qmk_firmware.git] / users / wanleg / rules.mk
1 SRC += wanleg.c tapdances.c
2
3 TAP_DANCE_ENABLE = yes
4 MOUSEKEY_ENABLE = yes
5
6 #If using a ProMicro and it has the QMK DFU bootloader instead of Caterina,
7 #run "make <keyboard>:<keymap> dfu=qmk" when compiling to ensure it is flagged properly after being flashed
8 ifeq ($(strip $(dfu)), qmk)
9     BOOTLOADER = qmk-dfu
10 endif
11
12 #use alternate settings for boards using ProMicro instead of Micro
13 #example usage: make 4x4:wanleg PM=yes
14 ifeq ($(strip $(PM)), yes)
15         OPT_DEFS += -DPRO_MICRO
16 endif
17
18 #use alternate settings for boards using "Adafruit Feather 32u4 Bluefruit LE" instead of Micro
19 #example usage: make 5x5:wanleg BT=yes
20 ifeq ($(strip $(BT)), yes)
21   #opt_defs for alternate pin usage
22   OPT_DEFS += -DBLUEFRUIT
23   #Adafruit Bluefruit controller settings
24   BLUETOOTH = AdafruitBLE
25   BLUETOOTH_ENABLE = yes
26   F_CPU = 8000000
27   CONSOLE_ENABLE = no           # Console for debug(+400)
28   COMMAND_ENABLE = no           # Commands for debug and configuration
29   RGBLIGHT_ENABLE = no        # Enable keyboard RGB underglow
30 endif
31
32 #move numpad to Left/Centre/Right(default) on 5x15 boards
33 #example usage: make 4x4:wanleg padc=yes
34 ifeq ($(strip $(padc)), yes)
35         OPT_DEFS += -DPADC
36 endif
37 ifeq ($(strip $(padl)), yes)
38         OPT_DEFS += -DPADL
39 endif
40
41 #change gherkin orientation (i.e. move USB port from right side to left side)
42 #example usage: make gherkin:wanleg flip=yes
43 ifeq ($(strip $(flip)), yes)
44         OPT_DEFS += -DFLIP
45 endif