1
0
Fork 0

[Keyboard] Update Work Louder keyboards (#18109)

This commit is contained in:
Drashna Jael're 2022-08-19 16:49:37 -07:00 committed by GitHub
parent f1786cbd7b
commit 39f0fb7bea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 80 additions and 355 deletions

View file

@ -21,7 +21,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* key matrix size */
#define MATRIX_ROWS 1
#define MATRIX_COLS 5
#define MATRIX_COLS 3
/*
* Keyboard Matrix Assignments
@ -36,7 +36,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MATRIX_ROW_PINS \
{ F7 }
#define MATRIX_COL_PINS \
{ B5, B6, C6, NO_PIN, NO_PIN }
{ B5, B6, C6 }
/* COL2ROW, ROW2COL */
#define DIODE_DIRECTION COL2ROW
@ -195,14 +195,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
{ D7 }
#define ENCODERS_PAD_B \
{ B4 }
#define ENCODERS 1
#define ENCODERS_CW_KEY \
{ \
{ 3, 0 } \
}
#define ENCODERS_CCW_KEY \
{ \
{ 4, 0 } \
}

View file

@ -1,11 +1,11 @@
{
"keyboard_name": "Nano Pad",
"manufacturer": "Work Louder",
"url": "",
"url": "https://worklouder.cc/",
"maintainer": "Work Louder",
"usb": {
"vid": "0x574C",
"pid": "0xE6EF",
"pid": "0xE6F0",
"device_version": "0.0.1"
},
"layouts": {

View file

@ -15,31 +15,28 @@
*/
#include QMK_KEYBOARD_H
#define LAYOUT_via( \
k00, k01, k02, \
k00_a, k00_b \
) { \
{ k00, k01, k02, k00_a, k00_b } \
}
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* Base */
[0] = LAYOUT_via(
KC_PSCR, MACRO00, MO(1),
KC_PGDN, KC_PGUP
[0] = LAYOUT(
KC_PSCR, MACRO00, MO(1)
),
[1] = LAYOUT_via(
QK_BOOT, MACRO01, _______,
_______, _______
[1] = LAYOUT(
QK_BOOT, MACRO01, _______
),
[2] = LAYOUT_via(
_______, _______, _______,
_______, _______
[2] = LAYOUT(
_______, _______, _______
),
[3] = LAYOUT_via(
_______, _______, _______,
_______, _______
[3] = LAYOUT(
_______, _______, _______
)
};
#ifdef ENCODER_MAP_ENABLE
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
[0] = { ENCODER_CCW_CW(KC_PGDN, KC_PGDN) },
[1] = { ENCODER_CCW_CW(_______, _______) },
[2] = { ENCODER_CCW_CW(_______, _______) },
[3] = { ENCODER_CCW_CW(_______, _______) },
};
#endif

View file

@ -1,4 +1,3 @@
VIA_ENABLE = yes
LTO_ENABLE = yes
SRC += encoder_actions.c
ENCODER_MAP_ENABLE = yes

View file

@ -16,7 +16,7 @@
#include "nano.h"
#if !defined(VIA_ENABLE) && defined(ENCODER_ENABLE)
#if defined(ENCODER_ENABLE)
bool encoder_update_kb(uint8_t index, bool clockwise) {
if (!encoder_update_user(index, clockwise)) { return false; }
if (clockwise) {

View file

@ -17,7 +17,6 @@
#pragma once
#include "quantum.h"
#include "encoder_actions.h"
#include "rgb_functions.h"
/* This is a shortcut to help you visually see your layout.