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 OPT_DEFS += -DBOOTLOADER_SIZE=4096
11 else ifeq ($(LFK_REV), J)
13 OPT_DEFS += -DBOOTLOADER_SIZE=4096
16 OPT_DEFS += -DBOOTLOADER_SIZE=8192
18 OPT_DEFS += -DLFK_REV_$(LFK_REV)
19 OPT_DEFS += -DLFK_REV_STRING=\"Rev$(LFK_REV)\"
21 # Extra source files for IS3731 lighting
22 SRC = TWIlib.c issi.c lighting.c
24 # Processor frequency.
27 # Target architecture (see library "Board Types" documentation).
30 # Input clock frequency.
33 # Interrupt driven control endpoint task(+60)
34 OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
36 BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
37 MOUSEKEY_ENABLE = no # Mouse keys(+4700)
38 EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
39 CONSOLE_ENABLE = no # Console for debug(+400)
40 COMMAND_ENABLE = no # Commands for debug and configuration
41 NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
42 BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
43 MIDI_ENABLE = no # MIDI controls
44 AUDIO_ENABLE = yes # Audio output on port C6
45 UNICODE_ENABLE = no # Unicode
46 BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
47 RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight.
48 RGBLIGHT_CUSTOM_DRIVER = yes # RGB code is implemented in lefkeyboards, not qmk base
49 SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
52 ISSI_ENABLE = yes # If the I2C pullup resistors aren't install this must be disabled
53 WATCHDOG_ENABLE = no # Resets keyboard if matrix_scan isn't run every 250ms
54 CAPSLOCK_LED = no # Toggle back light LED of Caps Lock
57 ifeq ($(strip $(ISSI_ENABLE)), yes)
58 TMK_COMMON_DEFS += -DISSI_ENABLE
61 ifeq ($(strip $(WATCHDOG_ENABLE)), yes)
62 TMK_COMMON_DEFS += -DWATCHDOG_ENABLE
65 ifeq ($(strip $(CAPSLOCK_LED)), yes)
66 TMK_COMMON_DEFS += -DCAPSLOCK_LED
69 # # Set the LFK78 hardware version. This is defined in rules.mk, but can be overidden here if desired
71 # # RevB - first public release, uses atmega32u4, has audio, ISSI matrix split between RGB and backlight
72 # # RevC/D - at90usb1286, no audio, ISSI device 0 is backlight, 4 is RGB
77 # ifeq ($(LFK_REV), B)
82 # OPT_DEFS += -DLFK_REV_$(LFK_REV)
83 # OPT_DEFS += -DUSB_PRODUCT=\"LFK_Rev$(LFK_REV)\"