diff options
author | Drashna Jaelre <drashna@live.com> | 2018-12-10 11:38:57 -0800 |
---|---|---|
committer | MechMerlin <30334081+mechmerlin@users.noreply.github.com> | 2018-12-10 11:38:57 -0800 |
commit | e5380795b9a0b554673449675630062be3b09573 (patch) | |
tree | d8190bf95bf0303d7e871b2b2fbe0c020ea4ef80 /keyboards/lfkeyboards/lfk78/lfk78.c | |
parent | 4a5e68f4f29b0c4c75a68b5958dff197f4ac0f53 (diff) | |
download | firmware-e5380795b9a0b554673449675630062be3b09573.tar.gz firmware-e5380795b9a0b554673449675630062be3b09573.tar.bz2 firmware-e5380795b9a0b554673449675630062be3b09573.zip |
Fix the LFKeyboards so they work with the QMK Configurator (#4591)
* Make layer_info weak so it works with QMK Configurator
* Fix lfk87 compile issue
* Add fixes for lfkpad
Diffstat (limited to 'keyboards/lfkeyboards/lfk78/lfk78.c')
-rw-r--r-- | keyboards/lfkeyboards/lfk78/lfk78.c | 9 |
1 files changed, 9 insertions, 0 deletions
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; uint16_t click_time = CLICK_MS; uint8_t click_toggle = CLICK_ENABLED; +__attribute__((weak)) +const Layer_Info layer_info[] = { + // Layer Mask Red Green Blue + {0x00000000, 0xFFFFFFFF, {0x0000, 0x0FFF, 0x0000}}, // base layer - green + {0x00000002, 0xFFFFFFFE, {0x0000, 0x0000, 0x0FFF}}, // function layer - blue + {0x00000004, 0xFFFFFFFC, {0x0FFF, 0x0000, 0x0FFF}}, // settings layer - magenta + {0xFFFFFFFF, 0xFFFFFFFF, {0x0FFF, 0x0FFF, 0x0FFF}}, // unknown layer - REQUIRED - white +}; + void matrix_init_kb(void) { matrix_init_user(); |