Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework of QVEX Lynepad implementation #20975

Closed
wants to merge 11 commits into from
44 changes: 18 additions & 26 deletions keyboards/qvex/lynepad/config.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
/*
Copyright 2020 KemoNine
seflm marked this conversation as resolved.
Show resolved Hide resolved
Copyright 2023 QVEX Tech

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
Expand All @@ -17,27 +16,20 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#pragma once

/* LEDs */
#define RGBLIGHT_EFFECT_BREATHING
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
#define RGBLIGHT_EFFECT_SNAKE
#define RGBLIGHT_EFFECT_KNIGHT
#define RGBLIGHT_EFFECT_CHRISTMAS
#define RGBLIGHT_EFFECT_STATIC_GRADIENT
#define RGBLIGHT_EFFECT_RGB_TEST
#define RGBLIGHT_EFFECT_ALTERNATING
#define RGBLIGHT_EFFECT_TWINKLE
#define RGBLED_NUM 4
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8

/* Definitions for encoder tilt/press support */
#define ENC_TILT_THRESHOLD 1
#define PIN_TW_SW D2 // Center
#define PIN_RJ_SW C6 // Center
#define PIN_RJ_DIR_A D4 // Up
#define PIN_RJ_DIR_B D7 // Left
#define PIN_RJ_DIR_C B6 // Down
#define PIN_RJ_DIR_D B4 // Right
#define DYNAMIC_KEYMAP_LAYER_COUNT 5

//Digital joystick (4-way switch + encoder)
#define PIN_JU D4
#define PIN_JD B6
#define PIN_JL D7
#define PIN_JR B4
#define PIN_JC C6

//Thumbwheel
#define PIN_TC D2

//Backlighting
#define BACKLIGHT_DEFAULT_LEVEL 5

//RGB ring
#define RGBLIGHT_DEFAULT_VAL 64
96 changes: 58 additions & 38 deletions keyboards/qvex/lynepad/info.json
Original file line number Diff line number Diff line change
@@ -1,49 +1,69 @@
{
"manufacturer": "QVEX Tech",
"keyboard_name": "Lynepad",
"manufacturer": "QVEX",
"url": "https://www.tindie.com/products/qvex_tech/qvex-lynepad-macro-keypad/",
seflm marked this conversation as resolved.
Show resolved Hide resolved
"maintainer": "KemoNine",
"usb": {
"vid": "0x5156",
"pid": "0x4C50",
"device_version": "0.0.1"
},
"maintainer": "QVEX-Tech",
"bootloader": "caterina",
"diode_direction": "COL2ROW",
seflm marked this conversation as resolved.
Show resolved Hide resolved
"matrix_pins": {
"cols": ["F0", "F1", "F4", "F5"],
"rows": ["C7", "F7", "F6"]
"cols": [ "F0", "F1", "F4", "F5"],
"rows": [ "C7", "F7" ,"F6", "F6", "F6"]
},
"processor": "atmega32u4",
"url": "https://qvex.eu",
"usb": {
"device_version": "1.0.0",
"vid": "0x5156",
"pid": "0x4C50"
},
"diode_direction": "COL2ROW",
"encoder": {
"rotary": [
{"pin_a": "D0", "pin_b": "D1"},
{"pin_a": "B5", "pin_b": "D6"}
]
"rotary": [
{"pin_a": "D6", "pin_b": "B5", "resolution": 2},
{"pin_a": "D1", "pin_b": "D0", "resolution": 2}
]
},
"ws2812": {
"pin": "D3"
"features": {
"backlight": true,
"bootmagic": true,
"encoder": true,
"extrakey": true,
"mousekey": true,
"rgblight": true
},
"rgblight": {
"max_brightness": 240
"led_count": 5,
"max_brightness": 192,
"sleep": true
},
"ws2812": {
"pin": "D3"
},
"backlight": {
"breathing": true,
"levels": 8,
"max_brightness": 192,
"pin": "B7"
},
"processor": "atmega32u4",
"bootloader": "caterina",
"layouts": {
"LAYOUT": {
"layout": [
{"matrix": [0, 0], "x": 0, "y": 0},
{"matrix": [0, 1], "x": 1, "y": 0},
{"matrix": [0, 2], "x": 2, "y": 0},
{"matrix": [0, 3], "x": 3, "y": 0},

{"matrix": [1, 0], "x": 0, "y": 1},
{"matrix": [1, 1], "x": 1, "y": 1},
{"matrix": [1, 2], "x": 2, "y": 1},
{"matrix": [1, 3], "x": 3, "y": 1},

{"matrix": [2, 0], "x": 0, "y": 2},
{"matrix": [2, 1], "x": 1, "y": 2},
{"matrix": [2, 2], "x": 2, "y": 2}
]
}
"LAYOUT": {
"layout": [
{ "matrix": [0, 0], "x": 0, "y": 0 },
{ "matrix": [0, 1], "x": 1, "y": 0 },
{ "matrix": [0, 2], "x": 2, "y": 0 },
{ "matrix": [0, 3], "x": 3, "y": 0 },
{ "matrix": [1, 0], "x": 0, "y": 1 },
{ "matrix": [1, 1], "x": 1, "y": 1 },
{ "matrix": [1, 2], "x": 2, "y": 1 },
{ "matrix": [1, 3], "x": 3, "y": 1 },
{ "matrix": [2, 0], "x": 0, "y": 2 },
{ "matrix": [2, 1], "x": 1, "y": 2 },
{ "matrix": [2, 2], "x": 2, "y": 2 },
{ "matrix": [3, 0], "x": 0, "y": 3 },
{ "matrix": [3, 1], "x": 1, "y": 3 },
{ "matrix": [3, 2], "x": 2, "y": 3 },
{ "matrix": [3, 3], "x": 3, "y": 3 },
{ "matrix": [4, 0], "x": 0, "y": 4 },
{ "matrix": [4, 1], "x": 1, "y": 4 }
]
}
}
}
}
Loading