]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/lfkeyboards/lfkpad/rules.mk
Fix the LFKeyboards so they work with the QMK Configurator (#4591)
[qmk_firmware.git] / keyboards / lfkeyboards / lfkpad / rules.mk
1 SRC = TWIlib.c issi.c lighting.c
2
3 MCU = atmega32u4
4 OPT_DEFS += -DBOOTLOADER_SIZE=4096
5
6 F_CPU = 16000000
7 F_USB = $(F_CPU)
8 ARCH = AVR8
9
10 # Interrupt driven control endpoint task(+60)
11 OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
12
13 LAYOUTS = numpad_6x4
14
15 BOOTMAGIC_ENABLE = no           # Virtual DIP switch configuration(+1000)
16 MOUSEKEY_ENABLE = no            # Mouse keys(+4700)
17 EXTRAKEY_ENABLE = yes           # Audio control and System control(+450)
18 CONSOLE_ENABLE = no             # Console for debug(+400)
19 COMMAND_ENABLE = no             # Commands for debug and configuration
20 NKRO_ENABLE = no               # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
21 BACKLIGHT_ENABLE = no          # Enable keyboard backlight functionality
22 MIDI_ENABLE = no                # MIDI controls
23 AUDIO_ENABLE = no               # Audio output on port C6
24 UNICODE_ENABLE = no             # Unicode
25 BLUETOOTH_ENABLE = no           # Enable Bluetooth with the Adafruit EZ-Key HID
26 RGBLIGHT_ENABLE = yes           # Enable WS2812 RGB underlight.
27 RGBLIGHT_CUSTOM_DRIVER = yes    # RGB code is implemented in lefkeyboards, not qmk base
28 SLEEP_LED_ENABLE = yes          # Breathing sleep LED during USB suspend
29 TAP_DANCE_ENABLE = no
30
31 ISSI_ENABLE = yes           # If the I2C pullup resistors aren't install this must be disabled
32 WATCHDOG_ENABLE = no       # Resets keyboard if matrix_scan isn't run every 250ms
33
34
35 ifeq ($(strip $(ISSI_ENABLE)), yes)
36     TMK_COMMON_DEFS += -DISSI_ENABLE
37 endif
38
39 ifeq ($(strip $(WATCHDOG_ENABLE)), yes)
40     TMK_COMMON_DEFS += -DWATCHDOG_ENABLE
41 endif