]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/lfkeyboards/lfk78/rules.mk
[Keyboard] Use GPIO macros for E6 LED in Planck and Preonic default keymaps (#7098)
[qmk_firmware.git] / keyboards / lfkeyboards / lfk78 / rules.mk
1 # Set the LFK78 hardware version.
2 #
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
6 LFK_REV = J
7
8 ifeq ($(LFK_REV), B)
9     MCU = atmega32u4
10 else ifeq ($(LFK_REV), J)
11     MCU = at90usb646
12 else
13     MCU = at90usb1286
14 endif
15 BOOTLOADER = atmel-dfu
16 OPT_DEFS += -DLFK_REV_$(LFK_REV)
17 OPT_DEFS += -DLFK_REV_STRING=\"Rev$(LFK_REV)\"
18
19 # Extra source files for IS3731 lighting
20 SRC = TWIlib.c issi.c lighting.c
21
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
36 TAP_DANCE_ENABLE = no
37
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
41
42
43 ifeq ($(strip $(ISSI_ENABLE)), yes)
44     TMK_COMMON_DEFS += -DISSI_ENABLE
45 endif
46
47 ifeq ($(strip $(WATCHDOG_ENABLE)), yes)
48     TMK_COMMON_DEFS += -DWATCHDOG_ENABLE
49 endif
50
51 ifeq ($(strip $(CAPSLOCK_LED)), yes)
52     TMK_COMMON_DEFS += -DCAPSLOCK_LED
53 endif
54
55 # # Set the LFK78 hardware version. This is defined in rules.mk, but can be overidden here if desired
56 # #
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
59 # #
60 # # Set to B, C or D
61 # LFK_REV = D
62
63 # ifeq ($(LFK_REV), B)
64 #   MCU = atmega32u4
65 # else
66 #   MCU = at90usb1286
67 # endif
68 # OPT_DEFS += -DLFK_REV_$(LFK_REV)
69 # OPT_DEFS += -DUSB_PRODUCT=\"LFK_Rev$(LFK_REV)\"