-
-
Notifications
You must be signed in to change notification settings - Fork 39.9k
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
Add Support for LPAD #19852
Merged
Merged
Add Support for LPAD #19852
Changes from 52 commits
Commits
Show all changes
64 commits
Select commit
Hold shift + click to select a range
baf496c
Add files via upload
Laneware 4fb557b
Update keymap.c
Laneware fa13aec
Update lw75.c
Laneware 761321c
Update lw75.h
Laneware 01a66dd
Update keymap.c
Laneware 397b612
Update keymap.c
Laneware 87daa41
Update keymap.c
Laneware ae4ccbc
Update keymap.c
Laneware bb4f3c3
Update keymap.c
Laneware 45a8f14
Update config.h
Laneware 38cfc32
Update config.h
Laneware 48ff1d8
Update keymap.c
Laneware 7f10209
Update keymap.c
Laneware 9ecd6c1
Update keymap.c
Laneware db1785d
Update keymap.c
Laneware 89ca3fd
Update keymap.c
Laneware 3ae08e5
Update lw75.c
Laneware 8c5092a
Update lw75.h
Laneware 54a2bdb
Update keyboards/lw75/keymaps/ansi_split_backspace/keymap.c
Laneware 3a97824
Update keyboards/lw75/keymaps/default/keymap.c
Laneware 3038c59
Update keyboards/lw75/keymaps/iso/keymap.c
Laneware 676c37c
Update keyboards/lw75/keymaps/iso_split_backspace/keymap.c
Laneware 8060d27
Update keyboards/lw75/readme.md
Laneware 512e3e5
Update keyboards/lw75/lw75.c
Laneware 34489b8
Update readme.md
Laneware 3b6895a
Update rules.mk
Laneware 97f089c
Update keymap.c
Laneware c3226ba
Update keymap.c
Laneware c96d3ef
Update keymap.c
Laneware 86ec73b
Update keyboards/lw75/lw75.c
Laneware 7a19a1f
Update keyboards/lw75/lw75.c
Laneware 59f274d
Update keyboards/lw75/rules.mk
Laneware 62b209f
Update keyboards/lw75/config.h
Laneware 5a4f4ab
Update keyboards/lw75/info.json
Laneware 7bf59b2
Update keyboards/lw75/config.h
Laneware d606cea
Support for LPAD
Laneware 71dd53d
Merge branch 'qmk:master' into master
Laneware 794628d
Support for LPAD
Laneware d324795
Update info.json
Laneware 5a20307
Update keymap.c
Laneware 598bb0f
Update keymap.c
Laneware 6be8ff7
Update lpad.h
Laneware 8db6362
Update lpad.h
Laneware f5f7fd1
Update keyboards/lpad/readme.md
Laneware ca52fe4
Update keyboards/lpad/readme.md
Laneware e1042a9
Update keyboards/lpad/lpad.h
Laneware 307d1a5
Update keyboards/lpad/keymaps/via/keymap.c
Laneware 8824efe
Update keyboards/lpad/keymaps/default/keymap.c
Laneware d787cb1
Update keyboards/lpad/info.json
Laneware e3235cc
Update keyboards/lpad/config.h
Laneware b49cfa4
Update keyboards/lpad/config.h
Laneware 06d7fb0
Update config.h
Laneware 2a0aa8a
Update keyboards/lpad/config.h
Laneware da1a5df
Update keyboards/lpad/info.json
Laneware 020eff6
Update keyboards/lpad/info.json
Laneware 2ae6cf6
Update keyboards/lpad/config.h
Laneware 91d83ad
Update rules.mk
Laneware b818a14
Update rules.mk
Laneware de86ad6
Update keyboards/lpad/info.json
Laneware e0d142d
Update keyboards/lpad/lpad.c
Laneware 634d288
Delete lpad.h
Laneware 0f4db54
Update info.json
Laneware e1f68b6
Update info.json
Laneware 02bc950
Update rules.mk
Laneware File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Copyright 2023 Laneware Peripherals | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
#pragma once | ||
|
||
#include "config_common.h" | ||
|
||
/* key matrix pins */ | ||
#define MATRIX_ROW_PINS { E6, B7, D0} | ||
#define MATRIX_COL_PINS { D3, D4, D6 } | ||
|
||
/* key matrix size */ | ||
#define MATRIX_ROWS 3 | ||
#define MATRIX_COLS 3 | ||
|
||
/*ENCODER*/ | ||
#define ENCODERS_PAD_A { F0 } | ||
#define ENCODERS_PAD_B { F1 } | ||
|
||
/* COL2ROW or ROW2COL */ | ||
#define DIODE_DIRECTION COL2ROW | ||
|
||
Laneware marked this conversation as resolved.
Show resolved
Hide resolved
|
||
/* 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"keyboard_name": "L-PAD", | ||
"manufacturer": "Laneware Peripherals", | ||
"url": "", | ||
"maintainer": "qmk", | ||
"usb": { | ||
"vid": "0x4C50", | ||
"pid": "0x2222", | ||
"device_version": "0.0.1" | ||
}, | ||
"processor": "atmega32u4", | ||
"bootloader": "atmel-dfu", | ||
Laneware marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"layouts":{ | ||
"LAYOUT": { | ||
"layout": [{"label":"Play", "x":0, "y":0}, {"label":"Mute", "x":1.5, "y":0.5}, {"label":"Next", "x":0, "y":1}, {"label":"Prev", "x":0, "y":2}, {"label":"Left", "x":1, "y":2}, {"label":"Right", "x":2, "y":2}] | ||
Laneware marked this conversation as resolved.
Show resolved
Hide resolved
|
||
}, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Copyright 2023 Laneware Peripherals | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
#include QMK_KEYBOARD_H | ||
|
||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
|
||
[0] = LAYOUT ( | ||
KC_MPLY, KC_MUTE, | ||
KC_MNXT, | ||
KC_MPRV, KC_LEFT, KC_RIGHT) | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// Copyright 2023 Laneware Peripherals | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
#include QMK_KEYBOARD_H | ||
|
||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
|
||
[0] = LAYOUT ( | ||
KC_MPLY, KC_MUTE, | ||
KC_MNXT, | ||
KC_MPRV, KC_LEFT, KC_RIGHT), | ||
|
||
[1] = LAYOUT ( | ||
KC_TRNS, KC_TRNS, | ||
KC_TRNS, | ||
KC_TRNS, KC_TRNS, KC_TRNS), | ||
|
||
[2] = LAYOUT ( | ||
KC_TRNS, KC_TRNS, | ||
KC_TRNS, | ||
KC_TRNS, KC_TRNS, KC_TRNS), | ||
|
||
[3] = LAYOUT ( | ||
KC_TRNS, KC_TRNS, | ||
KC_TRNS, | ||
KC_TRNS, KC_TRNS, KC_TRNS), | ||
}; | ||
|
||
#if defined(ENCODER_MAP_ENABLE) | ||
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = { | ||
[0] = {ENCODER_CCW_CW(KC_VOLD, KC_VOLU)}, | ||
[1] = {ENCODER_CCW_CW(KC_TRNS, KC_TRNS)}, | ||
[2] = {ENCODER_CCW_CW(KC_TRNS, KC_TRNS)}, | ||
[3] = {ENCODER_CCW_CW(KC_TRNS, KC_TRNS)}, | ||
}; | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
VIA_ENABLE = yes | ||
ENCODER_MAP_ENABLE = yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Copyright 2023 Laneware Peripherals | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
#include "lpad.h" | ||
Laneware marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
#ifdef ENCODER_ENABLE | ||
bool encoder_update_kb(uint8_t index, bool clockwise) { | ||
if (!encoder_update_user(index, clockwise)) return false; | ||
if (index == 0) { /* First encoder */ | ||
if (clockwise) { | ||
tap_code(KC_VOLU); | ||
} else { | ||
tap_code(KC_VOLD); | ||
} | ||
} | ||
return true; | ||
} | ||
#endif |
Laneware marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Copyright 2023 Laneware Peripherals | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
#pragma once | ||
|
||
#include "quantum.h" | ||
|
||
/* ┌───┐ | ||
* │000│ ┌───┐ | ||
* ├───┤ │001│ | ||
* │100│ └───┘ | ||
* ├───┼───┬───┐ | ||
* │200│201│202│ | ||
* └───┴───┴───┘ | ||
*/ | ||
|
||
#define LAYOUT ( \ | ||
K000, K001, \ | ||
K100, \ | ||
K200, K201, K202 \ | ||
) { \ | ||
{ K000, K001}, \ | ||
{ K100}, \ | ||
{ K200, K201, K202} \ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# LPAD | ||
|
||
![LPAD](https://i.imgur.com/bQgqZC6h.jpg) | ||
|
||
A Macro Keyboard with a RHS rotary encoder, made and sold by Laneware Peripherals. | ||
|
||
* Keyboard Maintainer: [Laneware Peripherals](https://github.com/laneware) | ||
* Hardware Supported: LPAD | ||
* Hardware Availability: [Laneware Peripherals](https://lanewareperipherals.com/), | ||
|
||
Make example for this keyboard (after setting up your build environment): | ||
|
||
make lpad:default | ||
Laneware marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
Flashing example for this keyboard: | ||
|
||
make lpad:default:flash | ||
|
||
|
||
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). | ||
|
||
## Bootloader | ||
|
||
Enter the bootloader in 2 ways: | ||
|
||
* **Bootmagic reset**: Hold down the Top Left Switch and plug in the keyboard | ||
* **Physical reset button**: Briefly press the button on the back of the PCB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
# Build Options | ||
# change yes to no to disable | ||
# | ||
BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite | ||
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 | ||
NKRO_ENABLE = yes # Enable N-Key Rollover | ||
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
AUDIO_ENABLE = no # Audio output | ||
ENCODER_ENABLE = yes |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file could probably be removed completely, as locking switch support is uncommon, and that's the only setting present here.