Start qvex lynepad bringup
This commit is contained in:
parent
8c8aed5443
commit
e84ea636c2
69
qmk/keyboards/qvex/lynepad/config.h
Normal file
69
qmk/keyboards/qvex/lynepad/config.h
Normal file
|
@ -0,0 +1,69 @@
|
|||
/*
|
||||
Copyright 2020 KemoNine
|
||||
|
||||
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"
|
||||
|
||||
/* USB Device descriptor parameter */
|
||||
#define VENDOR_ID 0x4B42 // FIXME: Update to match Lynepad
|
||||
#define PRODUCT_ID 0x6067 // FIXME: Update to match Lynepad
|
||||
#define DEVICE_VER 0x0002 // FIXME: Update to match Lynepad
|
||||
#define MANUFACTURER QVEX
|
||||
#define PRODUCT Lynepad
|
||||
#define DESCRIPTION Macro Keypad
|
||||
|
||||
/* key matrix size */
|
||||
#define MATRIX_ROWS 7
|
||||
#define MATRIX_COLS 6
|
||||
|
||||
#define MATRIX_ROW_PINS { D0, D1, D2, D3, D4, D5, D6} // FIXME: Update to match Lynepad
|
||||
#define MATRIX_COL_PINS { B0, B1, B2, B3, B4, B5 } // FIXME: Update to match Lynepad
|
||||
#define UNUSED_PINS
|
||||
|
||||
/* COL2ROW or ROW2COL */
|
||||
#define DIODE_DIRECTION COL2ROW // FIXME: Update to match Lynepad
|
||||
|
||||
/* Encoders */
|
||||
#define ENCODERS_PAD_A { E1, E3 } // FIXME: Update to match Lynepad
|
||||
#define ENCODERS_PAD_B { E2, E4 } // FIXME: Update to match Lynepad
|
||||
|
||||
/* number of backlight levels */
|
||||
#define BACKLIGHT_PIN C0 // FIXME: Update to match Lynepad
|
||||
#ifdef BACKLIGHT_PIN
|
||||
#define BACKLIGHT_LEVELS 3
|
||||
#endif
|
||||
|
||||
/* Set 0 if debouncing isn't needed */
|
||||
#define DEBOUNCE 5
|
||||
|
||||
/* 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
|
||||
|
||||
#define RGB_DI_PIN D1 // FIXME: Update to match Lynepad
|
||||
#ifdef RGB_DI_PIN
|
||||
#undef RGBLIGHT_ANIMATIONS
|
||||
#define RGBLED_NUM 4
|
||||
#define RGBLIGHT_HUE_STEP 8
|
||||
#define RGBLIGHT_SAT_STEP 8
|
||||
#define RGBLIGHT_VAL_STEP 8
|
||||
#define RGBLIGHT_LIMIT_VAL 240
|
||||
#define RGBLIGHT_SLEEP
|
||||
#endif
|
19
qmk/keyboards/qvex/lynepad/keymaps/default/config.h
Normal file
19
qmk/keyboards/qvex/lynepad/keymaps/default/config.h
Normal file
|
@ -0,0 +1,19 @@
|
|||
/* Copyright 2020 KemoNine
|
||||
*
|
||||
* 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
|
||||
|
||||
// place overrides here
|
70
qmk/keyboards/qvex/lynepad/keymaps/default/keymap.c
Normal file
70
qmk/keyboards/qvex/lynepad/keymaps/default/keymap.c
Normal file
|
@ -0,0 +1,70 @@
|
|||
/* Copyright 2020 KemoNine
|
||||
*
|
||||
* 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] = {
|
||||
/* Keymap (Base Layer) Default Layer
|
||||
* |----------------------------|
|
||||
* | 1 | 2 | 3 | 4 | |
|
||||
* | 5 | 6 | 7 | 8 | |
|
||||
* |----------------------------|
|
||||
* | | OK ||
|
||||
* |----------------------------|
|
||||
* | 9 | 10 | 11 | |
|
||||
* |----------------------------|
|
||||
* | | Up | |
|
||||
* | | Left | OK | Right |
|
||||
* | | Down | |
|
||||
* |----------------------------|
|
||||
*/
|
||||
[0] = LAYOUT(
|
||||
KC_NO, KC_MS_BTN2, KC_MS_UP, KC_MS_BTN1,
|
||||
KC_NO, KC_MS_LEFT, KC_MS_DOWN, KC_MS_RIGHT,
|
||||
KC_ESC,
|
||||
TO(0), TO(0), KC_NO,
|
||||
KC_UP,
|
||||
KC_LEFT, KC_ENTER, KC_RIGHT,
|
||||
KC_DOWN
|
||||
)
|
||||
};
|
||||
|
||||
void encoder_update_user(uint8_t index, bool clockwise) {
|
||||
if (index == 0) { /* First encoder */
|
||||
if (clockwise) {
|
||||
tap_code(KC_MS_WH_RIGHT);
|
||||
} else {
|
||||
tap_code(KC_MS_WH_LEFT);
|
||||
}
|
||||
} else if (index == 1) { /* Second encoder */
|
||||
if (clockwise) {
|
||||
tap_code(KC_MS_WH_DOWN);
|
||||
} else {
|
||||
tap_code(KC_MS_WH_UP);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void matrix_init_user(void) {
|
||||
|
||||
}
|
||||
|
||||
void matrix_scan_user(void) {
|
||||
|
||||
}
|
||||
|
||||
void led_set_user(uint8_t usb_led) {
|
||||
|
||||
}
|
1
qmk/keyboards/qvex/lynepad/keymaps/default/readme.md
Normal file
1
qmk/keyboards/qvex/lynepad/keymaps/default/readme.md
Normal file
|
@ -0,0 +1 @@
|
|||
# The default keymap for lynepad
|
2
qmk/keyboards/qvex/lynepad/lynepad.c
Normal file
2
qmk/keyboards/qvex/lynepad/lynepad.c
Normal file
|
@ -0,0 +1,2 @@
|
|||
#include "lynepad.h"
|
||||
|
45
qmk/keyboards/qvex/lynepad/lynepad.h
Normal file
45
qmk/keyboards/qvex/lynepad/lynepad.h
Normal file
|
@ -0,0 +1,45 @@
|
|||
/* Copyright 2020 KemoNine
|
||||
*
|
||||
* 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 "quantum.h"
|
||||
|
||||
/* This a shortcut to help you visually see your layout.
|
||||
*
|
||||
* The first section contains all of the arguments representing the physical
|
||||
* layout of the board and position of the keys.
|
||||
*
|
||||
* The second converts the arguments into a two-dimensional array which
|
||||
* represents the switch matrix.
|
||||
*/
|
||||
#define LAYOUT( \
|
||||
K00, K01, K02, K03, \
|
||||
K10, K11, K12, K13, \
|
||||
K25, \
|
||||
K30, K31, K32, \
|
||||
K44, \
|
||||
K53, K54, K55, \
|
||||
K64 \
|
||||
) \
|
||||
{ \
|
||||
{ K00, K01, K02, K03, KC_NO, KC_NO }, \
|
||||
{ K10, K11, K12, K13, KC_NO, KC_NO }, \
|
||||
{ KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, K25 }, \
|
||||
{ K30, K31, K32, KC_NO, KC_NO, KC_NO }, \
|
||||
{ KC_NO, KC_NO, KC_NO, KC_NO, K44, KC_NO }, \
|
||||
{ KC_NO, KC_NO, KC_NO, K53, K54, K55 }, \
|
||||
{ KC_NO, KC_NO, KC_NO, KC_NO, K64, KC_NO } \
|
||||
}
|
13
qmk/keyboards/qvex/lynepad/readme.md
Normal file
13
qmk/keyboards/qvex/lynepad/readme.md
Normal file
|
@ -0,0 +1,13 @@
|
|||
# QVEX Lynepad
|
||||
|
||||
Macro pad with 11 keys and 2 rotary encoders.
|
||||
|
||||
Keyboard Maintainer: [KemoNine](https://git.kemonine.info/kemonine/keyboard)
|
||||
Hardware Supported: QVEX Lynepad: macro keypad
|
||||
Hardware Availability: Tindie [Keyboard Kit](https://www.tindie.com/products/qvex_tech/qvex-lynepad-macro-keypad/)
|
||||
|
||||
Make example for this macro pad (after setting up your build environment):
|
||||
|
||||
make qvex/lynepad: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).
|
34
qmk/keyboards/qvex/lynepad/rules.mk
Normal file
34
qmk/keyboards/qvex/lynepad/rules.mk
Normal file
|
@ -0,0 +1,34 @@
|
|||
# MCU name
|
||||
MCU = atmega32u4
|
||||
|
||||
# Bootloader selection
|
||||
# Teensy halfkay
|
||||
# Pro Micro caterina
|
||||
# Atmel DFU atmel-dfu
|
||||
# LUFA DFU lufa-dfu
|
||||
# QMK DFU qmk-dfu
|
||||
# ATmega32A bootloadHID
|
||||
# ATmega328P USBasp
|
||||
BOOTLOADER = atmel-dfu
|
||||
|
||||
# Build Options
|
||||
# change yes to no to disable
|
||||
#
|
||||
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
|
||||
MOUSEKEY_ENABLE = yes # Mouse keys
|
||||
EXTRAKEY_ENABLE = yes # Audio control and System control
|
||||
CONSOLE_ENABLE = no # Console for debug
|
||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
|
||||
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
|
||||
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
|
||||
NKRO_ENABLE = no # USB Nkey Rollover
|
||||
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality on B7 by default
|
||||
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
|
||||
MIDI_ENABLE = no # MIDI support
|
||||
UNICODE_ENABLE = no # Unicode
|
||||
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
|
||||
AUDIO_ENABLE = no # Audio output on port C6
|
||||
FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
|
||||
HD44780_ENABLE = no # Enable support for HD44780 based LCDs
|
||||
ENCODER_ENABLE = yes # Enable the encoders
|
7
qmk/keyboards/qvex/readme.md
Normal file
7
qmk/keyboards/qvex/readme.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
# QVEX
|
||||
|
||||
QVEX is a keyboard vendor based in Czechia
|
||||
|
||||
## Online Stores
|
||||
|
||||
**Website:** https://www.tindie.com/products/qvex_tech/qvex-lynepad-macro-keypad/
|
Loading…
Reference in a new issue