diff options
Diffstat (limited to 'keyboards/lfkeyboards/lfkpad')
-rw-r--r-- | keyboards/lfkeyboards/lfkpad/config.h | 117 | ||||
-rw-r--r-- | keyboards/lfkeyboards/lfkpad/info.json | 38 | ||||
-rw-r--r-- | keyboards/lfkeyboards/lfkpad/keymaps/default/keymap.c | 31 | ||||
-rw-r--r-- | keyboards/lfkeyboards/lfkpad/keymaps/default/readme.md | 1 | ||||
-rw-r--r-- | keyboards/lfkeyboards/lfkpad/keymaps/pascalpfeil/config.h | 27 | ||||
-rw-r--r-- | keyboards/lfkeyboards/lfkpad/keymaps/pascalpfeil/keymap.c | 73 | ||||
-rw-r--r-- | keyboards/lfkeyboards/lfkpad/keymaps/pascalpfeil/rules.mk | 2 | ||||
-rw-r--r-- | keyboards/lfkeyboards/lfkpad/keymaps/via/keymap.c | 56 | ||||
-rw-r--r-- | keyboards/lfkeyboards/lfkpad/keymaps/via/readme.md | 1 | ||||
-rw-r--r-- | keyboards/lfkeyboards/lfkpad/keymaps/via/rules.mk | 2 | ||||
-rw-r--r-- | keyboards/lfkeyboards/lfkpad/lfkpad.c | 74 | ||||
-rw-r--r-- | keyboards/lfkeyboards/lfkpad/lfkpad.h | 21 | ||||
-rw-r--r-- | keyboards/lfkeyboards/lfkpad/post_rules.mk | 7 | ||||
-rw-r--r-- | keyboards/lfkeyboards/lfkpad/readme.md | 15 | ||||
-rw-r--r-- | keyboards/lfkeyboards/lfkpad/rules.mk | 27 |
15 files changed, 0 insertions, 492 deletions
diff --git a/keyboards/lfkeyboards/lfkpad/config.h b/keyboards/lfkeyboards/lfkpad/config.h deleted file mode 100644 index 84dfdad009..0000000000 --- a/keyboards/lfkeyboards/lfkpad/config.h +++ /dev/null @@ -1,117 +0,0 @@ -/* -Copyright 2012 Jun Wako <wakojun@gmail.com> - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 2 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see <http://www.gnu.org/licenses/>. -*/ - -#pragma once - -#include "config_common.h" - -/* key matrix size */ -#define MATRIX_ROWS 6 -#define MATRIX_COLS 4 - -/* - * Keyboard Matrix Assignments - * - * Change this to how you wired your keyboard - * COLS: AVR pins used for columns, left to right - * ROWS: AVR pins used for rows, top to bottom - * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) - * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) - * - */ -#define MATRIX_ROW_PINS { D5, F4, F6, F7, C7, C6 } -#define MATRIX_COL_PINS { F1, F0, D4, D6 } - -/* COL2ROW, ROW2COL*/ -#define DIODE_DIRECTION COL2ROW - -/* - * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN. - */ -//#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6 - -// #define BACKLIGHT_PIN B7 -// #define BACKLIGHT_BREATHING -// #define BACKLIGHT_LEVELS 3 - -#define RGB_DI_PIN C7 // Have to set it to something to get the ws2812 code to compile -#ifdef RGB_DI_PIN -# define RGBLED_NUM 28 -# define RGBLIGHT_HUE_STEP 10 -# define RGBLIGHT_SAT_STEP 17 -# define RGBLIGHT_VAL_STEP 17 -# define RGBLIGHT_ANIMATIONS -#endif - -#define TAPPING_TERM 200 - -/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ -#define DEBOUNCE 5 - -/* define if matrix has ghost (lacks anti-ghosting diodes) */ -//#define MATRIX_HAS_GHOST - -/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ -#define LOCKING_SUPPORT_ENABLE -/* Locking resynchronize hack */ -#define LOCKING_RESYNC_ENABLE - -/* If defined, GRAVE_ESC will always act as ESC when CTRL is held. - * This is userful for the Windows task manager shortcut (ctrl+shift+esc). - */ -// #define GRAVE_ESC_CTRL_OVERRIDE - -/* - * Force NKRO - * - * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved - * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the - * makefile for this to work.) - * - * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) - * until the next keyboard reset. - * - * NKRO may prevent your keystrokes from being detected in the BIOS, but it is - * fully operational during normal computer usage. - * - * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) - * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by - * bootmagic, NKRO mode will always be enabled until it is toggled again during a - * power-up. - * - */ -//#define FORCE_NKRO - -/* - * Feature disable options - * These options are also useful to firmware size reduction. - */ - -/* disable debug print */ -//#define NO_DEBUG - -/* disable print */ -//#define NO_PRINT - -/* disable action features */ -//#define NO_ACTION_LAYER -//#define NO_ACTION_TAPPING -//#define NO_ACTION_ONESHOT - -/* Bootmagic Lite key configuration */ -// #define BOOTMAGIC_LITE_ROW 0 -// #define BOOTMAGIC_LITE_COLUMN 0 diff --git a/keyboards/lfkeyboards/lfkpad/info.json b/keyboards/lfkeyboards/lfkpad/info.json deleted file mode 100644 index 0ce6089c05..0000000000 --- a/keyboards/lfkeyboards/lfkpad/info.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "keyboard_name": "LFKPad", - "manufacturer": "LFKeyboards", - "url": "", - "maintainer": "qmk", - "usb": { - "vid": "0x4C46", - "pid": "0x3231", - "device_version": "0.0.1" - }, - "layouts": { - "LAYOUT_numpad_6x4": { - "layout": [ - {"x":0, "y":0}, - {"x":1, "y":0}, - {"x":2, "y":0}, - {"x":3, "y":0}, - {"x":0, "y":1}, - {"x":1, "y":1}, - {"x":2, "y":1}, - {"x":3, "y":1}, - {"x":0, "y":2}, - {"x":1, "y":2}, - {"x":2, "y":2}, - {"x":0, "y":3}, - {"x":1, "y":3}, - {"x":2, "y":3}, - {"x":3, "y":2, "h":2}, - {"x":0, "y":4}, - {"x":1, "y":4}, - {"x":2, "y":4}, - {"x":0, "y":5, "w":2}, - {"x":2, "y":5}, - {"x":3, "y":4, "h":2} - ] - } - } -} diff --git a/keyboards/lfkeyboards/lfkpad/keymaps/default/keymap.c b/keyboards/lfkeyboards/lfkpad/keymaps/default/keymap.c deleted file mode 100644 index 0aa720e400..0000000000 --- a/keyboards/lfkeyboards/lfkpad/keymaps/default/keymap.c +++ /dev/null @@ -1,31 +0,0 @@ -#include QMK_KEYBOARD_H - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - /* Base */ - [0] = LAYOUT_numpad_6x4( - KC_ESC, KC_TAB, KC_PEQL, MO(1), - KC_LNUM, KC_PSLS, KC_PAST, KC_PMNS, - KC_P7, KC_P8, KC_P9, - KC_P4, KC_P5, KC_P6, KC_PPLS, - KC_P1, KC_P2, KC_P3, - KC_P0, KC_PDOT, KC_PENT - ), - - /* RGB */ - [1] = LAYOUT_numpad_6x4( - RGB_SAI, RGB_VAI, RGB_HUI, _______, - RGB_SAD, RGB_VAD, RGB_HUD, _______, - RGB_M_X, RGB_M_G, RGB_MOD, - RGB_M_SW,RGB_M_SN,RGB_M_K, RGB_RMOD, - RGB_M_P, RGB_M_B, RGB_M_R, - XXXXXXX, XXXXXXX, RGB_TOG - ) -}; - -void matrix_init_user(void) { - // This keymap only has a single base layer, so reset the default if needed - if (eeconfig_read_default_layer() > 1) { - eeconfig_update_default_layer(1); - default_layer_set(1); - } -} diff --git a/keyboards/lfkeyboards/lfkpad/keymaps/default/readme.md b/keyboards/lfkeyboards/lfkpad/keymaps/default/readme.md deleted file mode 100644 index 9c0dad0301..0000000000 --- a/keyboards/lfkeyboards/lfkpad/keymaps/default/readme.md +++ /dev/null @@ -1 +0,0 @@ -# The default keymap for the LFKPad 21 diff --git a/keyboards/lfkeyboards/lfkpad/keymaps/pascalpfeil/config.h b/keyboards/lfkeyboards/lfkpad/keymaps/pascalpfeil/config.h deleted file mode 100644 index 0f9ddaef31..0000000000 --- a/keyboards/lfkeyboards/lfkpad/keymaps/pascalpfeil/config.h +++ /dev/null @@ -1,27 +0,0 @@ -/* Copyright 2021 Pascal Pfeil - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -#pragma once - -/* 1000Hz USB polling */ -#define USB_POLLING_INTERVAL_MS 1 - -/* Force NKRO on boot up */ -#define FORCE_NKRO - -#define RGB_DISABLE_WHEN_USB_SUSPENDED - -#define RGB_DISABLE_TIMEOUT 900000 diff --git a/keyboards/lfkeyboards/lfkpad/keymaps/pascalpfeil/keymap.c b/keyboards/lfkeyboards/lfkpad/keymaps/pascalpfeil/keymap.c deleted file mode 100644 index 667e8859e2..0000000000 --- a/keyboards/lfkeyboards/lfkpad/keymaps/pascalpfeil/keymap.c +++ /dev/null @@ -1,73 +0,0 @@ -/* Copyright 2021 Pascal Pfeil - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -#include QMK_KEYBOARD_H - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - [0] = LAYOUT_numpad_6x4( - KC_ESC, KC_TAB, KC_BSPC, MO(1), - KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, - KC_P7, KC_P8, KC_P9, - KC_P4, KC_P5, KC_P6, KC_PPLS, - KC_P1, KC_P2, KC_P3, - KC_P0, KC_PDOT, KC_PENT - ), - - /* RGB */ - [1] = LAYOUT_numpad_6x4( - RGB_SAI, RGB_VAI, RGB_HUI, _______, - RGB_SAD, RGB_VAD, RGB_HUD, QK_BOOT, - RGB_M_X, RGB_M_G, RGB_MOD, - RGB_M_SW,RGB_M_SN,RGB_M_K, RGB_RMOD, - RGB_M_P, RGB_M_B, RGB_M_R, - XXXXXXX, XXXXXXX, RGB_TOG - ), - - /* VIA wants four keymaps */ - [2] = LAYOUT_numpad_6x4( - _______, _______, _______, _______, - _______, _______, _______, _______, - _______, _______, _______, - _______, _______, _______, _______, - _______, _______, _______, - _______, _______, _______ - ), - - /* VIA wants four keymaps */ - [3] = LAYOUT_numpad_6x4( - _______, _______, _______, _______, - _______, _______, _______, _______, - _______, _______, _______, - _______, _______, _______, _______, - _______, _______, _______, - _______, _______, _______ - ), -}; - -const uint8_t number_leds[] = {8, 9, 10, 11, 12, 13, 15, 16, 17}; -const uint8_t number_leds_size = sizeof(number_leds) / sizeof(uint8_t); - -bool led_update_user(led_t led_state) { - for (uint8_t i = 0; i < number_leds_size; i++) - if (led_state.num_lock) - // set to whatever the other leds are doing - // this is needed so that upon disabling num lock, the leds don't stay red - rgblight_sethsv_at(rgblight_get_hue(), rgblight_get_sat(), rgblight_get_val(), numer_leds[i]); - else - rgblight_setrgb_red_at(numer_leds[i]); // set to red - - return true; -} diff --git a/keyboards/lfkeyboards/lfkpad/keymaps/pascalpfeil/rules.mk b/keyboards/lfkeyboards/lfkpad/keymaps/pascalpfeil/rules.mk deleted file mode 100644 index 36b7ba9cbc..0000000000 --- a/keyboards/lfkeyboards/lfkpad/keymaps/pascalpfeil/rules.mk +++ /dev/null @@ -1,2 +0,0 @@ -VIA_ENABLE = yes -LTO_ENABLE = yes diff --git a/keyboards/lfkeyboards/lfkpad/keymaps/via/keymap.c b/keyboards/lfkeyboards/lfkpad/keymaps/via/keymap.c deleted file mode 100644 index 374f00fb13..0000000000 --- a/keyboards/lfkeyboards/lfkpad/keymaps/via/keymap.c +++ /dev/null @@ -1,56 +0,0 @@ -/* -Copyright 2020 Pascal Pfeil -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 2 of the License, or -(at your option) any later version. -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. -You should have received a copy of the GNU General Public License -along with this program. If not, see <http://www.gnu.org/licenses/>. -*/ - -#include QMK_KEYBOARD_H - -const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { - [0] = LAYOUT_numpad_6x4( - KC_ESC, KC_TAB, KC_PEQL, MO(1), - KC_LNUM, KC_PSLS, KC_PAST, KC_PMNS, - KC_P7, KC_P8, KC_P9, - KC_P4, KC_P5, KC_P6, KC_PPLS, - KC_P1, KC_P2, KC_P3, - KC_P0, KC_PDOT, KC_PENT - ), - - /* RGB */ - [1] = LAYOUT_numpad_6x4( - RGB_SAI, RGB_VAI, RGB_HUI, _______, - RGB_SAD, RGB_VAD, RGB_HUD, _______, - RGB_M_X, RGB_M_G, RGB_MOD, - RGB_M_SW,RGB_M_SN,RGB_M_K, RGB_RMOD, - RGB_M_P, RGB_M_B, RGB_M_R, - XXXXXXX, XXXXXXX, RGB_TOG - ), - - /* VIA wants four keymaps */ - [2] = LAYOUT_numpad_6x4( - _______, _______, _______, _______, - _______, _______, _______, _______, - _______, _______, _______, - _______, _______, _______, _______, - _______, _______, _______, - _______, _______, _______ - ), - - /* VIA wants four keymaps */ - [3] = LAYOUT_numpad_6x4( - _______, _______, _______, _______, - _______, _______, _______, _______, - _______, _______, _______, - _______, _______, _______, _______, - _______, _______, _______, - _______, _______, _______ - ), -}; diff --git a/keyboards/lfkeyboards/lfkpad/keymaps/via/readme.md b/keyboards/lfkeyboards/lfkpad/keymaps/via/readme.md deleted file mode 100644 index bafbae872e..0000000000 --- a/keyboards/lfkeyboards/lfkpad/keymaps/via/readme.md +++ /dev/null @@ -1 +0,0 @@ -# The VIA compatible keymap for the LFKPad 21 diff --git a/keyboards/lfkeyboards/lfkpad/keymaps/via/rules.mk b/keyboards/lfkeyboards/lfkpad/keymaps/via/rules.mk deleted file mode 100644 index 36b7ba9cbc..0000000000 --- a/keyboards/lfkeyboards/lfkpad/keymaps/via/rules.mk +++ /dev/null @@ -1,2 +0,0 @@ -VIA_ENABLE = yes -LTO_ENABLE = yes diff --git a/keyboards/lfkeyboards/lfkpad/lfkpad.c b/keyboards/lfkeyboards/lfkpad/lfkpad.c deleted file mode 100644 index fffa26ca3a..0000000000 --- a/keyboards/lfkeyboards/lfkpad/lfkpad.c +++ /dev/null @@ -1,74 +0,0 @@ -#include "lfkpad.h" - -#include "quantum.h" - -#include <avr/timer_avr.h> -#include <avr/wdt.h> -#include "issi.h" -#include "TWIlib.h" -#include "lighting.h" - -void matrix_init_kb(void) { - matrix_init_user(); - -#ifdef ISSI_ENABLE - issi_init(); -#endif - -#ifdef WATCHDOG_ENABLE - // This is done after turning the layer LED red, if we're caught in a loop - // we should get a flashing red light - wdt_enable(WDTO_500MS); -#endif -} - -void matrix_scan_kb(void) { -#ifdef WATCHDOG_ENABLE - wdt_reset(); -#endif - -#ifdef ISSI_ENABLE - // switch/underglow lighting update - static uint32_t issi_device = 0; - static uint32_t twi_last_ready = 0; - - if (twi_last_ready > 1000) { - // It's been way too long since the last ISSI update, reset the I2C bus and start again - dprintf("TWI failed to recover, TWI re-init\n"); - twi_last_ready = 0; - TWIInit(); - force_issi_refresh(); - } - - if (isTWIReady()) { - twi_last_ready = 0; - // If the i2c bus is available, kick off the issi update, alternate between devices - update_issi(issi_device, issi_device); - - if (issi_device) { - issi_device = 0; - } else { - issi_device = 3; - } - } else { - twi_last_ready++; - } -#endif - - matrix_scan_user(); -} - -// LFK lighting info -const uint8_t rgb_matrices[] = { 0, 1 }; -const uint8_t rgb_sequence[] = { - 32, 1, 2, 3, - 31, 30, 5, 6, - 28, 27, 7, - 17, 18, 9, 8, - 19, 21, 11, - 22, 14, 12, - 16, 26, - 4, 25, - 13, 24, - 20 -}; diff --git a/keyboards/lfkeyboards/lfkpad/lfkpad.h b/keyboards/lfkeyboards/lfkpad/lfkpad.h deleted file mode 100644 index 5ca8a3c50d..0000000000 --- a/keyboards/lfkeyboards/lfkpad/lfkpad.h +++ /dev/null @@ -1,21 +0,0 @@ -#pragma once - -#include "quantum.h" - -#define ___ KC_NO - -#define LAYOUT_numpad_6x4( \ - k00, k01, k02, k03, \ - k10, k11, k12, k13, \ - k20, k21, k22, \ - k30, k31, k32, k23, \ - k40, k41, k42, \ - k50, k52, k43 \ -) { \ - { k00, k01, k02, k03 }, \ - { k10, k11, k12, k13 }, \ - { k20, k21, k22, k23 }, \ - { k30, k31, k32, ___ }, \ - { k40, k41, k42, k43 }, \ - { k50, ___, k52, ___ } \ -} diff --git a/keyboards/lfkeyboards/lfkpad/post_rules.mk b/keyboards/lfkeyboards/lfkpad/post_rules.mk deleted file mode 100644 index ad997587b2..0000000000 --- a/keyboards/lfkeyboards/lfkpad/post_rules.mk +++ /dev/null @@ -1,7 +0,0 @@ -ifeq ($(strip $(ISSI_ENABLE)), yes) - TMK_COMMON_DEFS += -DISSI_ENABLE -endif - -ifeq ($(strip $(WATCHDOG_ENABLE)), yes) - TMK_COMMON_DEFS += -DWATCHDOG_ENABLE -endif diff --git a/keyboards/lfkeyboards/lfkpad/readme.md b/keyboards/lfkeyboards/lfkpad/readme.md deleted file mode 100644 index ce5e7f67b9..0000000000 --- a/keyboards/lfkeyboards/lfkpad/readme.md +++ /dev/null @@ -1,15 +0,0 @@ -# LFKPad - -![LFKPad](https://cdn11.bigcommerce.com/s-dvx2zpcx7r/images/stencil/500x659/products/118/385/img_0256__06462.1546304848.jpg) - -Hotswap 21-key numpad PCB with USB-C, per-key RGB and underglow. - -* Keyboard Maintainer: QMK community -* Hardware Supported: LFKPad HS21 PCB -* Hardware Availability: [LFKeyboards](https://www.lfkeyboards.com/lfkpad/) - -Make example for this keyboard (after setting up your build environment): - - make lfkeyboards/lfkpad:default - -See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). diff --git a/keyboards/lfkeyboards/lfkpad/rules.mk b/keyboards/lfkeyboards/lfkpad/rules.mk deleted file mode 100644 index 3e56a53241..0000000000 --- a/keyboards/lfkeyboards/lfkpad/rules.mk +++ /dev/null @@ -1,27 +0,0 @@ -# MCU name -MCU = atmega32u4 - -# Bootloader selection -BOOTLOADER = atmel-dfu - -# Build Options -# change yes to no to disable -# -BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite -MOUSEKEY_ENABLE = no # Mouse keys -EXTRAKEY_ENABLE = yes # Audio control and System control -CONSOLE_ENABLE = no # Console for debug -COMMAND_ENABLE = no # Commands for debug and configuration -NKRO_ENABLE = no # Enable N-Key Rollover -BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality -RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow -RGBLIGHT_CUSTOM_DRIVER = yes # RGB code is implemented in lfkeyboards, not qmk base -AUDIO_ENABLE = no # Audio output -SLEEP_LED_ENABLE = yes - -ISSI_ENABLE = yes # If the I2C pullup resistors aren't installed this must be disabled -WATCHDOG_ENABLE = no # Resets keyboard if matrix_scan() isn't run every 250ms - -SRC = TWIlib.c issi.c lighting.c - -LAYOUTS = numpad_6x4 |