1 # Set the LFK78 hardware version.
3 # B - first public release, uses atmega32u4, has audio, ISSI matrix split between RGB and backlight
4 # C-H - at90usb1286, no audio, ISSI device 0 is backlight, 4 is RGB
5 # J - at90usb646, C6 audio, ISSI device 0 is backlight, 4 is RGB
10 else ifeq ($(LFK_REV), J)
15 BOOTLOADER = atmel-dfu
16 OPT_DEFS += -DLFK_REV_$(LFK_REV)
17 OPT_DEFS += -DLFK_REV_STRING=\"Rev$(LFK_REV)\"
19 # Extra source files for IS3731 lighting
20 SRC = TWIlib.c issi.c lighting.c
22 BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
23 MOUSEKEY_ENABLE = no # Mouse keys(+4700)
24 EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
25 CONSOLE_ENABLE = no # Console for debug(+400)
26 COMMAND_ENABLE = no # Commands for debug and configuration
27 NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
28 BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
29 MIDI_ENABLE = no # MIDI controls
30 AUDIO_ENABLE = yes # Audio output on port C6
31 UNICODE_ENABLE = no # Unicode
32 BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
33 RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight.
34 RGBLIGHT_CUSTOM_DRIVER = yes # RGB code is implemented in lefkeyboards, not qmk base
35 SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
38 ISSI_ENABLE = yes # If the I2C pullup resistors aren't install this must be disabled
39 WATCHDOG_ENABLE = no # Resets keyboard if matrix_scan isn't run every 250ms
40 CAPSLOCK_LED = no # Toggle back light LED of Caps Lock
43 ifeq ($(strip $(ISSI_ENABLE)), yes)
44 TMK_COMMON_DEFS += -DISSI_ENABLE
47 ifeq ($(strip $(WATCHDOG_ENABLE)), yes)
48 TMK_COMMON_DEFS += -DWATCHDOG_ENABLE
51 ifeq ($(strip $(CAPSLOCK_LED)), yes)
52 TMK_COMMON_DEFS += -DCAPSLOCK_LED
55 # # Set the LFK78 hardware version. This is defined in rules.mk, but can be overidden here if desired
57 # # RevB - first public release, uses atmega32u4, has audio, ISSI matrix split between RGB and backlight
58 # # RevC/D - at90usb1286, no audio, ISSI device 0 is backlight, 4 is RGB
63 # ifeq ($(LFK_REV), B)
68 # OPT_DEFS += -DLFK_REV_$(LFK_REV)
69 # OPT_DEFS += -DUSB_PRODUCT=\"LFK_Rev$(LFK_REV)\"