diff options
17 files changed, 143 insertions, 124 deletions
diff --git a/keyboards/lfkeyboards/lfk78/keymaps/ca178858/rules.mk b/keyboards/lfkeyboards/lfk78/keymaps/ca178858/rules.mk index 394c58b37..98e3d5a78 100644 --- a/keyboards/lfkeyboards/lfk78/keymaps/ca178858/rules.mk +++ b/keyboards/lfkeyboards/lfk78/keymaps/ca178858/rules.mk | |||
| @@ -23,19 +23,6 @@ ISSI_ENABLE = yes # If the I2C pullup resistors aren't install this must be di | |||
| 23 | WATCHDOG_ENABLE = yes # Resets keyboard if matrix_scan isn't run every 250ms | 23 | WATCHDOG_ENABLE = yes # Resets keyboard if matrix_scan isn't run every 250ms |
| 24 | 24 | ||
| 25 | 25 | ||
| 26 | ifndef QUANTUM_DIR | ||
| 27 | include ../../../../Makefile | ||
| 28 | endif | ||
| 29 | |||
| 30 | ifeq ($(strip $(ISSI_ENABLE)), yes) | ||
| 31 | TMK_COMMON_DEFS += -DISSI_ENABLE | ||
| 32 | endif | ||
| 33 | |||
| 34 | ifeq ($(strip $(WATCHDOG_ENABLE)), yes) | ||
| 35 | TMK_COMMON_DEFS += -DWATCHDOG_ENABLE | ||
| 36 | endif | ||
| 37 | |||
| 38 | |||
| 39 | # # Set the LFK78 hardware version. This is defined in rules.mk, but can be overidden here if desired | 26 | # # Set the LFK78 hardware version. This is defined in rules.mk, but can be overidden here if desired |
| 40 | # # | 27 | # # |
| 41 | # # RevB - first public release, uses atmega32u4, has audio, ISSI matrix split between RGB and backlight | 28 | # # RevB - first public release, uses atmega32u4, has audio, ISSI matrix split between RGB and backlight |
diff --git a/keyboards/lfkeyboards/lfk78/keymaps/default/rules.mk b/keyboards/lfkeyboards/lfk78/keymaps/default/rules.mk index 555ad9723..1477c3ac7 100644 --- a/keyboards/lfkeyboards/lfk78/keymaps/default/rules.mk +++ b/keyboards/lfkeyboards/lfk78/keymaps/default/rules.mk | |||
| @@ -14,7 +14,7 @@ MIDI_ENABLE = no # MIDI controls | |||
| 14 | AUDIO_ENABLE = yes # Audio output on port C6 | 14 | AUDIO_ENABLE = yes # Audio output on port C6 |
| 15 | UNICODE_ENABLE = no # Unicode | 15 | UNICODE_ENABLE = no # Unicode |
| 16 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | 16 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID |
| 17 | RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. | 17 | RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. |
| 18 | RGBLIGHT_CUSTOM_DRIVER = yes # RGB code is implemented in lefkeyboards, not qmk base | 18 | RGBLIGHT_CUSTOM_DRIVER = yes # RGB code is implemented in lefkeyboards, not qmk base |
| 19 | SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend | 19 | SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend |
| 20 | TAP_DANCE_ENABLE = no | 20 | TAP_DANCE_ENABLE = no |
| @@ -23,21 +23,6 @@ ISSI_ENABLE = yes # If the I2C pullup resistors aren't install thi | |||
| 23 | WATCHDOG_ENABLE = no # Resets keyboard if matrix_scan isn't run every 250ms | 23 | WATCHDOG_ENABLE = no # Resets keyboard if matrix_scan isn't run every 250ms |
| 24 | CAPSLOCK_LED = no # Toggle back light LED of Caps Lock | 24 | CAPSLOCK_LED = no # Toggle back light LED of Caps Lock |
| 25 | 25 | ||
| 26 | ifndef QUANTUM_DIR | ||
| 27 | include ../../../../Makefile | ||
| 28 | endif | ||
| 29 | |||
| 30 | ifeq ($(strip $(ISSI_ENABLE)), yes) | ||
| 31 | TMK_COMMON_DEFS += -DISSI_ENABLE | ||
| 32 | endif | ||
| 33 | |||
| 34 | ifeq ($(strip $(WATCHDOG_ENABLE)), yes) | ||
| 35 | TMK_COMMON_DEFS += -DWATCHDOG_ENABLE | ||
| 36 | endif | ||
| 37 | |||
| 38 | ifeq ($(strip $(CAPSLOCK_LED)), yes) | ||
| 39 | TMK_COMMON_DEFS += -DCAPSLOCK_LED | ||
| 40 | endif | ||
| 41 | 26 | ||
| 42 | # Override the LFK78 hardware version: | 27 | # Override the LFK78 hardware version: |
| 43 | # | 28 | # |
diff --git a/keyboards/lfkeyboards/lfk78/keymaps/iso/rules.mk b/keyboards/lfkeyboards/lfk78/keymaps/iso/rules.mk index 147e95bc8..3cfc994cb 100644 --- a/keyboards/lfkeyboards/lfk78/keymaps/iso/rules.mk +++ b/keyboards/lfkeyboards/lfk78/keymaps/iso/rules.mk | |||
| @@ -14,7 +14,7 @@ MIDI_ENABLE = no # MIDI controls | |||
| 14 | AUDIO_ENABLE = yes # Audio output on port C6 | 14 | AUDIO_ENABLE = yes # Audio output on port C6 |
| 15 | UNICODE_ENABLE = no # Unicode | 15 | UNICODE_ENABLE = no # Unicode |
| 16 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | 16 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID |
| 17 | RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. | 17 | RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. |
| 18 | RGBLIGHT_CUSTOM_DRIVER = yes # RGB code is implemented in lefkeyboards, not qmk base | 18 | RGBLIGHT_CUSTOM_DRIVER = yes # RGB code is implemented in lefkeyboards, not qmk base |
| 19 | SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend | 19 | SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend |
| 20 | TAP_DANCE_ENABLE = no | 20 | TAP_DANCE_ENABLE = no |
| @@ -23,18 +23,6 @@ ISSI_ENABLE = yes # If the I2C pullup resistors aren't install this mu | |||
| 23 | WATCHDOG_ENABLE = no # Resets keyboard if matrix_scan isn't run every 250ms | 23 | WATCHDOG_ENABLE = no # Resets keyboard if matrix_scan isn't run every 250ms |
| 24 | 24 | ||
| 25 | 25 | ||
| 26 | ifndef QUANTUM_DIR | ||
| 27 | include ../../../../Makefile | ||
| 28 | endif | ||
| 29 | |||
| 30 | ifeq ($(strip $(ISSI_ENABLE)), yes) | ||
| 31 | TMK_COMMON_DEFS += -DISSI_ENABLE | ||
| 32 | endif | ||
| 33 | |||
| 34 | ifeq ($(strip $(WATCHDOG_ENABLE)), yes) | ||
| 35 | TMK_COMMON_DEFS += -DWATCHDOG_ENABLE | ||
| 36 | endif | ||
| 37 | |||
| 38 | 26 | ||
| 39 | # # Set the LFK78 hardware version. This is defined in rules.mk, but can be overidden here if desired | 27 | # # Set the LFK78 hardware version. This is defined in rules.mk, but can be overidden here if desired |
| 40 | # # | 28 | # # |
diff --git a/keyboards/lfkeyboards/lfk78/keymaps/split_bs_osx/rules.mk b/keyboards/lfkeyboards/lfk78/keymaps/split_bs_osx/rules.mk index 555ad9723..f789b6866 100644 --- a/keyboards/lfkeyboards/lfk78/keymaps/split_bs_osx/rules.mk +++ b/keyboards/lfkeyboards/lfk78/keymaps/split_bs_osx/rules.mk | |||
| @@ -14,7 +14,7 @@ MIDI_ENABLE = no # MIDI controls | |||
| 14 | AUDIO_ENABLE = yes # Audio output on port C6 | 14 | AUDIO_ENABLE = yes # Audio output on port C6 |
| 15 | UNICODE_ENABLE = no # Unicode | 15 | UNICODE_ENABLE = no # Unicode |
| 16 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | 16 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID |
| 17 | RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. | 17 | RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. |
| 18 | RGBLIGHT_CUSTOM_DRIVER = yes # RGB code is implemented in lefkeyboards, not qmk base | 18 | RGBLIGHT_CUSTOM_DRIVER = yes # RGB code is implemented in lefkeyboards, not qmk base |
| 19 | SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend | 19 | SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend |
| 20 | TAP_DANCE_ENABLE = no | 20 | TAP_DANCE_ENABLE = no |
| @@ -23,22 +23,6 @@ ISSI_ENABLE = yes # If the I2C pullup resistors aren't install thi | |||
| 23 | WATCHDOG_ENABLE = no # Resets keyboard if matrix_scan isn't run every 250ms | 23 | WATCHDOG_ENABLE = no # Resets keyboard if matrix_scan isn't run every 250ms |
| 24 | CAPSLOCK_LED = no # Toggle back light LED of Caps Lock | 24 | CAPSLOCK_LED = no # Toggle back light LED of Caps Lock |
| 25 | 25 | ||
| 26 | ifndef QUANTUM_DIR | ||
| 27 | include ../../../../Makefile | ||
| 28 | endif | ||
| 29 | |||
| 30 | ifeq ($(strip $(ISSI_ENABLE)), yes) | ||
| 31 | TMK_COMMON_DEFS += -DISSI_ENABLE | ||
| 32 | endif | ||
| 33 | |||
| 34 | ifeq ($(strip $(WATCHDOG_ENABLE)), yes) | ||
| 35 | TMK_COMMON_DEFS += -DWATCHDOG_ENABLE | ||
| 36 | endif | ||
| 37 | |||
| 38 | ifeq ($(strip $(CAPSLOCK_LED)), yes) | ||
| 39 | TMK_COMMON_DEFS += -DCAPSLOCK_LED | ||
| 40 | endif | ||
| 41 | |||
| 42 | # Override the LFK78 hardware version: | 26 | # Override the LFK78 hardware version: |
| 43 | # | 27 | # |
| 44 | # B - first public release, uses atmega32u4, has audio, ISSI matrix split between RGB and backlight | 28 | # B - first public release, uses atmega32u4, has audio, ISSI matrix split between RGB and backlight |
diff --git a/keyboards/lfkeyboards/lfk78/lfk78.c b/keyboards/lfkeyboards/lfk78/lfk78.c index e02739e4f..60b7ab4ce 100644 --- a/keyboards/lfkeyboards/lfk78/lfk78.c +++ b/keyboards/lfkeyboards/lfk78/lfk78.c | |||
| @@ -13,6 +13,15 @@ uint16_t click_hz = CLICK_HZ; | |||
| 13 | uint16_t click_time = CLICK_MS; | 13 | uint16_t click_time = CLICK_MS; |
| 14 | uint8_t click_toggle = CLICK_ENABLED; | 14 | uint8_t click_toggle = CLICK_ENABLED; |
| 15 | 15 | ||
| 16 | __attribute__((weak)) | ||
| 17 | const Layer_Info layer_info[] = { | ||
| 18 | // Layer Mask Red Green Blue | ||
| 19 | {0x00000000, 0xFFFFFFFF, {0x0000, 0x0FFF, 0x0000}}, // base layer - green | ||
| 20 | {0x00000002, 0xFFFFFFFE, {0x0000, 0x0000, 0x0FFF}}, // function layer - blue | ||
| 21 | {0x00000004, 0xFFFFFFFC, {0x0FFF, 0x0000, 0x0FFF}}, // settings layer - magenta | ||
| 22 | {0xFFFFFFFF, 0xFFFFFFFF, {0x0FFF, 0x0FFF, 0x0FFF}}, // unknown layer - REQUIRED - white | ||
| 23 | }; | ||
| 24 | |||
| 16 | void matrix_init_kb(void) | 25 | void matrix_init_kb(void) |
| 17 | { | 26 | { |
| 18 | matrix_init_user(); | 27 | matrix_init_user(); |
diff --git a/keyboards/lfkeyboards/lfk78/rules.mk b/keyboards/lfkeyboards/lfk78/rules.mk index 091cd7755..cc314c97a 100644 --- a/keyboards/lfkeyboards/lfk78/rules.mk +++ b/keyboards/lfkeyboards/lfk78/rules.mk | |||
| @@ -32,3 +32,52 @@ F_USB = $(F_CPU) | |||
| 32 | 32 | ||
| 33 | # Interrupt driven control endpoint task(+60) | 33 | # Interrupt driven control endpoint task(+60) |
| 34 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | 34 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT |
| 35 | |||
| 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 | ||
| 50 | TAP_DANCE_ENABLE = no | ||
| 51 | |||
| 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 | ||
| 55 | |||
| 56 | |||
| 57 | ifeq ($(strip $(ISSI_ENABLE)), yes) | ||
| 58 | TMK_COMMON_DEFS += -DISSI_ENABLE | ||
| 59 | endif | ||
| 60 | |||
| 61 | ifeq ($(strip $(WATCHDOG_ENABLE)), yes) | ||
| 62 | TMK_COMMON_DEFS += -DWATCHDOG_ENABLE | ||
| 63 | endif | ||
| 64 | |||
| 65 | ifeq ($(strip $(CAPSLOCK_LED)), yes) | ||
| 66 | TMK_COMMON_DEFS += -DCAPSLOCK_LED | ||
| 67 | endif | ||
| 68 | |||
| 69 | # # Set the LFK78 hardware version. This is defined in rules.mk, but can be overidden here if desired | ||
| 70 | # # | ||
| 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 | ||
| 73 | # # | ||
| 74 | # # Set to B, C or D | ||
| 75 | # LFK_REV = D | ||
| 76 | |||
| 77 | # ifeq ($(LFK_REV), B) | ||
| 78 | # MCU = atmega32u4 | ||
| 79 | # else | ||
| 80 | # MCU = at90usb1286 | ||
| 81 | # endif | ||
| 82 | # OPT_DEFS += -DLFK_REV_$(LFK_REV) | ||
| 83 | # OPT_DEFS += -DUSB_PRODUCT=\"LFK_Rev$(LFK_REV)\" | ||
diff --git a/keyboards/lfkeyboards/lfk87/keymaps/ca178858/rules.mk b/keyboards/lfkeyboards/lfk87/keymaps/ca178858/rules.mk index 9819cdbee..f28ec80ea 100644 --- a/keyboards/lfkeyboards/lfk87/keymaps/ca178858/rules.mk +++ b/keyboards/lfkeyboards/lfk87/keymaps/ca178858/rules.mk | |||
| @@ -23,17 +23,6 @@ ISSI_ENABLE = yes # If the I2C pullup resistors aren't install this must be di | |||
| 23 | WATCHDOG_ENABLE = yes # Resets keyboard if matrix_scan isn't run every 250ms | 23 | WATCHDOG_ENABLE = yes # Resets keyboard if matrix_scan isn't run every 250ms |
| 24 | 24 | ||
| 25 | 25 | ||
| 26 | ifndef QUANTUM_DIR | ||
| 27 | include ../../../../Makefile | ||
| 28 | endif | ||
| 29 | |||
| 30 | ifeq ($(strip $(ISSI_ENABLE)), yes) | ||
| 31 | TMK_COMMON_DEFS += -DISSI_ENABLE | ||
| 32 | endif | ||
| 33 | |||
| 34 | ifeq ($(strip $(WATCHDOG_ENABLE)), yes) | ||
| 35 | TMK_COMMON_DEFS += -DWATCHDOG_ENABLE | ||
| 36 | endif | ||
| 37 | 26 | ||
| 38 | 27 | ||
| 39 | # # Set the LFK78 hardware version. This is defined in rules.mk, but can be overidden here if desired | 28 | # # Set the LFK78 hardware version. This is defined in rules.mk, but can be overidden here if desired |
diff --git a/keyboards/lfkeyboards/lfk87/keymaps/default/rules.mk b/keyboards/lfkeyboards/lfk87/keymaps/default/rules.mk index c1f1070fd..c079c264e 100644 --- a/keyboards/lfkeyboards/lfk87/keymaps/default/rules.mk +++ b/keyboards/lfkeyboards/lfk87/keymaps/default/rules.mk | |||
| @@ -23,17 +23,6 @@ ISSI_ENABLE = yes # If the I2C pullup resistors aren't install this must be di | |||
| 23 | WATCHDOG_ENABLE = no # Resets keyboard if matrix_scan isn't run every 250ms | 23 | WATCHDOG_ENABLE = no # Resets keyboard if matrix_scan isn't run every 250ms |
| 24 | 24 | ||
| 25 | 25 | ||
| 26 | ifndef QUANTUM_DIR | ||
| 27 | include ../../../../Makefile | ||
| 28 | endif | ||
| 29 | |||
| 30 | ifeq ($(strip $(ISSI_ENABLE)), yes) | ||
| 31 | TMK_COMMON_DEFS += -DISSI_ENABLE | ||
| 32 | endif | ||
| 33 | |||
| 34 | ifeq ($(strip $(WATCHDOG_ENABLE)), yes) | ||
| 35 | TMK_COMMON_DEFS += -DWATCHDOG_ENABLE | ||
| 36 | endif | ||
| 37 | 26 | ||
| 38 | 27 | ||
| 39 | # Override the LFK87 hardware version. | 28 | # Override the LFK87 hardware version. |
diff --git a/keyboards/lfkeyboards/lfk87/keymaps/gbchk/rules.mk b/keyboards/lfkeyboards/lfk87/keymaps/gbchk/rules.mk index c1f1070fd..f7b39455b 100644 --- a/keyboards/lfkeyboards/lfk87/keymaps/gbchk/rules.mk +++ b/keyboards/lfkeyboards/lfk87/keymaps/gbchk/rules.mk | |||
| @@ -23,19 +23,6 @@ ISSI_ENABLE = yes # If the I2C pullup resistors aren't install this must be di | |||
| 23 | WATCHDOG_ENABLE = no # Resets keyboard if matrix_scan isn't run every 250ms | 23 | WATCHDOG_ENABLE = no # Resets keyboard if matrix_scan isn't run every 250ms |
| 24 | 24 | ||
| 25 | 25 | ||
| 26 | ifndef QUANTUM_DIR | ||
| 27 | include ../../../../Makefile | ||
| 28 | endif | ||
| 29 | |||
| 30 | ifeq ($(strip $(ISSI_ENABLE)), yes) | ||
| 31 | TMK_COMMON_DEFS += -DISSI_ENABLE | ||
| 32 | endif | ||
| 33 | |||
| 34 | ifeq ($(strip $(WATCHDOG_ENABLE)), yes) | ||
| 35 | TMK_COMMON_DEFS += -DWATCHDOG_ENABLE | ||
| 36 | endif | ||
| 37 | |||
| 38 | |||
| 39 | # Override the LFK87 hardware version. | 26 | # Override the LFK87 hardware version. |
| 40 | # | 27 | # |
| 41 | # A - Green PCB. at90usb1286 Only 3 exist | 28 | # A - Green PCB. at90usb1286 Only 3 exist |
diff --git a/keyboards/lfkeyboards/lfk87/keymaps/iso/rules.mk b/keyboards/lfkeyboards/lfk87/keymaps/iso/rules.mk index 68e200a5d..7823dea78 100644 --- a/keyboards/lfkeyboards/lfk87/keymaps/iso/rules.mk +++ b/keyboards/lfkeyboards/lfk87/keymaps/iso/rules.mk | |||
| @@ -23,17 +23,6 @@ ISSI_ENABLE = yes # If the I2C pullup resistors aren't install thi | |||
| 23 | WATCHDOG_ENABLE = no # Resets keyboard if matrix_scan isn't run every 250ms | 23 | WATCHDOG_ENABLE = no # Resets keyboard if matrix_scan isn't run every 250ms |
| 24 | 24 | ||
| 25 | 25 | ||
| 26 | ifndef QUANTUM_DIR | ||
| 27 | include ../../../../Makefile | ||
| 28 | endif | ||
| 29 | |||
| 30 | ifeq ($(strip $(ISSI_ENABLE)), yes) | ||
| 31 | TMK_COMMON_DEFS += -DISSI_ENABLE | ||
| 32 | endif | ||
| 33 | |||
| 34 | ifeq ($(strip $(WATCHDOG_ENABLE)), yes) | ||
| 35 | TMK_COMMON_DEFS += -DWATCHDOG_ENABLE | ||
| 36 | endif | ||
| 37 | 26 | ||
| 38 | 27 | ||
| 39 | # # Set the LFK78 hardware version. This is defined in rules.mk, but can be overidden here if desired | 28 | # # Set the LFK78 hardware version. This is defined in rules.mk, but can be overidden here if desired |
diff --git a/keyboards/lfkeyboards/lfk87/lfk87.c b/keyboards/lfkeyboards/lfk87/lfk87.c index e9f184e36..4b34fcef7 100644 --- a/keyboards/lfkeyboards/lfk87/lfk87.c +++ b/keyboards/lfkeyboards/lfk87/lfk87.c | |||
| @@ -14,6 +14,15 @@ uint16_t click_hz = CLICK_HZ; | |||
| 14 | uint16_t click_time = CLICK_MS; | 14 | uint16_t click_time = CLICK_MS; |
| 15 | uint8_t click_toggle = CLICK_ENABLED; | 15 | uint8_t click_toggle = CLICK_ENABLED; |
| 16 | 16 | ||
| 17 | __attribute__((weak)) | ||
| 18 | const Layer_Info layer_info[] = { | ||
| 19 | // Layer Mask Red Green Blue | ||
| 20 | {0x00000000, 0xFFFFFFFF, {0x00, 0xFF, 0x00}}, // base layers - green | ||
| 21 | {0x00000002, 0xFFFFFFFE, {0x00, 0x00, 0xFF}}, // function layer - blue | ||
| 22 | {0x00000004, 0xFFFFFFFC, {0xFF, 0x00, 0xFF}}, // settings layer - magenta | ||
| 23 | {0xFFFFFFFF, 0xFFFFFFFF, {0xFF, 0xFF, 0xFF}}, // unknown layer - REQUIRED - white | ||
| 24 | }; | ||
| 25 | |||
| 17 | void matrix_init_kb(void) | 26 | void matrix_init_kb(void) |
| 18 | { | 27 | { |
| 19 | // put your keyboard start-up code here | 28 | // put your keyboard start-up code here |
diff --git a/keyboards/lfkeyboards/lfk87/rules.mk b/keyboards/lfkeyboards/lfk87/rules.mk index 19b41de09..c10f47306 100644 --- a/keyboards/lfkeyboards/lfk87/rules.mk +++ b/keyboards/lfkeyboards/lfk87/rules.mk | |||
| @@ -31,3 +31,37 @@ F_USB = $(F_CPU) | |||
| 31 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | 31 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT |
| 32 | 32 | ||
| 33 | LAYOUTS = tkl_ansi tkl_iso | 33 | LAYOUTS = tkl_ansi tkl_iso |
| 34 | |||
| 35 | # Build Options | ||
| 36 | # change to "no" to disable the options, or define them in the Makefile in | ||
| 37 | # the appropriate keymap folder that will get included automatically | ||
| 38 | # | ||
| 39 | |||
| 40 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) | ||
| 41 | MOUSEKEY_ENABLE = no # Mouse keys(+4700) | ||
| 42 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
| 43 | CONSOLE_ENABLE = no # Console for debug(+400) | ||
| 44 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 45 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 46 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | ||
| 47 | MIDI_ENABLE = no # MIDI controls | ||
| 48 | AUDIO_ENABLE = yes # Audio output on port C6 | ||
| 49 | UNICODE_ENABLE = no # Unicode | ||
| 50 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
| 51 | RGBLIGHT_ENABLE = yes # Enable RGB underlight | ||
| 52 | RGBLIGHT_CUSTOM_DRIVER = yes # RGB code is implemented in lefkeyboards, not WS2812 | ||
| 53 | SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend | ||
| 54 | TAP_DANCE_ENABLE = no | ||
| 55 | |||
| 56 | ISSI_ENABLE = yes # If the I2C pullup resistors aren't install this must be disabled | ||
| 57 | WATCHDOG_ENABLE = no # Resets keyboard if matrix_scan isn't run every 250ms | ||
| 58 | |||
| 59 | |||
| 60 | |||
| 61 | ifeq ($(strip $(ISSI_ENABLE)), yes) | ||
| 62 | OPT_DEFS += -DISSI_ENABLE | ||
| 63 | endif | ||
| 64 | |||
| 65 | ifeq ($(strip $(WATCHDOG_ENABLE)), yes) | ||
| 66 | OPT_DEFS += -DWATCHDOG_ENABLE | ||
| 67 | endif | ||
diff --git a/keyboards/lfkeyboards/lfkpad/keymaps/default/rules.mk b/keyboards/lfkeyboards/lfkpad/keymaps/default/rules.mk index 1653f4e30..cc21b32dc 100644 --- a/keyboards/lfkeyboards/lfkpad/keymaps/default/rules.mk +++ b/keyboards/lfkeyboards/lfkpad/keymaps/default/rules.mk | |||
| @@ -14,7 +14,7 @@ MIDI_ENABLE = no # MIDI controls | |||
| 14 | AUDIO_ENABLE = no # Audio output on port C6 | 14 | AUDIO_ENABLE = no # Audio output on port C6 |
| 15 | UNICODE_ENABLE = no # Unicode | 15 | UNICODE_ENABLE = no # Unicode |
| 16 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | 16 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID |
| 17 | RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. | 17 | RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. |
| 18 | RGBLIGHT_CUSTOM_DRIVER = yes # RGB code is implemented in lefkeyboards, not qmk base | 18 | RGBLIGHT_CUSTOM_DRIVER = yes # RGB code is implemented in lefkeyboards, not qmk base |
| 19 | SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend | 19 | SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend |
| 20 | TAP_DANCE_ENABLE = no | 20 | TAP_DANCE_ENABLE = no |
| @@ -23,17 +23,6 @@ ISSI_ENABLE = yes # If the I2C pullup resistors aren't install this mu | |||
| 23 | WATCHDOG_ENABLE = no # Resets keyboard if matrix_scan isn't run every 250ms | 23 | WATCHDOG_ENABLE = no # Resets keyboard if matrix_scan isn't run every 250ms |
| 24 | 24 | ||
| 25 | 25 | ||
| 26 | ifndef QUANTUM_DIR | ||
| 27 | include ../../../../Makefile | ||
| 28 | endif | ||
| 29 | |||
| 30 | ifeq ($(strip $(ISSI_ENABLE)), yes) | ||
| 31 | TMK_COMMON_DEFS += -DISSI_ENABLE | ||
| 32 | endif | ||
| 33 | |||
| 34 | ifeq ($(strip $(WATCHDOG_ENABLE)), yes) | ||
| 35 | TMK_COMMON_DEFS += -DWATCHDOG_ENABLE | ||
| 36 | endif | ||
| 37 | 26 | ||
| 38 | 27 | ||
| 39 | # # Set the LFK78 hardware version. This is defined in rules.mk, but can be overidden here if desired | 28 | # # Set the LFK78 hardware version. This is defined in rules.mk, but can be overidden here if desired |
diff --git a/keyboards/lfkeyboards/lfkpad/rules.mk b/keyboards/lfkeyboards/lfkpad/rules.mk index e28e398cc..83553f64c 100644 --- a/keyboards/lfkeyboards/lfkpad/rules.mk +++ b/keyboards/lfkeyboards/lfkpad/rules.mk | |||
| @@ -11,3 +11,31 @@ ARCH = AVR8 | |||
| 11 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | 11 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT |
| 12 | 12 | ||
| 13 | LAYOUTS = numpad_6x4 | 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 | ||
diff --git a/keyboards/lfkeyboards/mini1800/keymaps/ca178858/rules.mk b/keyboards/lfkeyboards/mini1800/keymaps/ca178858/rules.mk index 16452df67..2c6035d58 100644 --- a/keyboards/lfkeyboards/mini1800/keymaps/ca178858/rules.mk +++ b/keyboards/lfkeyboards/mini1800/keymaps/ca178858/rules.mk | |||
| @@ -23,9 +23,6 @@ ISSI_ENABLE = yes # If the I2C pullup resistors aren't install this must be di | |||
| 23 | WATCHDOG_ENABLE = yes # Resets keyboard if matrix_scan isn't run every 250ms | 23 | WATCHDOG_ENABLE = yes # Resets keyboard if matrix_scan isn't run every 250ms |
| 24 | 24 | ||
| 25 | 25 | ||
| 26 | ifndef QUANTUM_DIR | ||
| 27 | include ../../../../Makefile | ||
| 28 | endif | ||
| 29 | 26 | ||
| 30 | ifeq ($(strip $(ISSI_ENABLE)), yes) | 27 | ifeq ($(strip $(ISSI_ENABLE)), yes) |
| 31 | TMK_COMMON_DEFS += -DISSI_ENABLE | 28 | TMK_COMMON_DEFS += -DISSI_ENABLE |
diff --git a/keyboards/lfkeyboards/mini1800/keymaps/default/rules.mk b/keyboards/lfkeyboards/mini1800/keymaps/default/rules.mk index d6e35e353..1598173f3 100644 --- a/keyboards/lfkeyboards/mini1800/keymaps/default/rules.mk +++ b/keyboards/lfkeyboards/mini1800/keymaps/default/rules.mk | |||
| @@ -23,10 +23,6 @@ ISSI_ENABLE = yes # If the I2C pullup resistors aren't install this must be di | |||
| 23 | WATCHDOG_ENABLE = yes # Resets keyboard if matrix_scan isn't run every 250ms | 23 | WATCHDOG_ENABLE = yes # Resets keyboard if matrix_scan isn't run every 250ms |
| 24 | 24 | ||
| 25 | 25 | ||
| 26 | ifndef QUANTUM_DIR | ||
| 27 | include ../../../../Makefile | ||
| 28 | endif | ||
| 29 | |||
| 30 | ifeq ($(strip $(ISSI_ENABLE)), yes) | 26 | ifeq ($(strip $(ISSI_ENABLE)), yes) |
| 31 | TMK_COMMON_DEFS += -DISSI_ENABLE | 27 | TMK_COMMON_DEFS += -DISSI_ENABLE |
| 32 | endif | 28 | endif |
diff --git a/keyboards/lfkeyboards/mini1800/mini1800.c b/keyboards/lfkeyboards/mini1800/mini1800.c index f0692d46c..d5f4193c1 100644 --- a/keyboards/lfkeyboards/mini1800/mini1800.c +++ b/keyboards/lfkeyboards/mini1800/mini1800.c | |||
| @@ -17,6 +17,16 @@ uint16_t click_time = CLICK_MS; | |||
| 17 | uint8_t click_toggle = CLICK_ENABLED; | 17 | uint8_t click_toggle = CLICK_ENABLED; |
| 18 | float my_song[][2] = SONG(ZELDA_PUZZLE); | 18 | float my_song[][2] = SONG(ZELDA_PUZZLE); |
| 19 | 19 | ||
| 20 | // Colors of the layer indicator LED | ||
| 21 | // This list needs to define layer 0xFFFFFFFF, it is the end of the list, and the unknown layer | ||
| 22 | __attribute__((weak)) | ||
| 23 | const Layer_Info layer_info[] = { | ||
| 24 | // Layer Mask Red Green Blue | ||
| 25 | {0x00000000, 0xFFFFFFFF, {0x00, 0xFF, 0x00}}, // base layers - green | ||
| 26 | {0x00000002, 0xFFFFFFFE, {0x00, 0x00, 0xFF}}, // function layer - blue | ||
| 27 | {0x00000004, 0xFFFFFFFC, {0xFF, 0x00, 0xFF}}, // settings layer - magenta | ||
| 28 | {0xFFFFFFFF, 0xFFFFFFFF, {0xFF, 0xFF, 0xFF}}, // unknown layer - REQUIRED - white | ||
| 29 | }; | ||
| 20 | 30 | ||
| 21 | void matrix_init_kb(void) | 31 | void matrix_init_kb(void) |
| 22 | { | 32 | { |
