VIAL Support for Erkhal's PRKL30 keyboard and my own project, SINPAD20 (#259)

* Create rules.mk

* Add files via upload

* Update readme.md

* Support for PRKL30 + fix

Added VIAL support for PRKL30 since it didn't have any.

I also fixed a deprecated line in the promicro folder.  #define RGBLIGHT_ANIMATIONS is no longer valid in QMK.
This commit is contained in:
CountKeepo
2022-10-10 15:45:34 -06:00
committed by GitHub
parent d1f4a03f75
commit 7511cb2c4d
16 changed files with 697 additions and 1 deletions
+20
View File
@@ -0,0 +1,20 @@
// Copyright 2022 Count Keepo (@CountKeepo)
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
/*
* 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
+53
View File
@@ -0,0 +1,53 @@
{
"manufacturer": "Count Keepo",
"keyboard_name": "sinpad20",
"maintainer": "CountKeepo",
"bootloader": "caterina",
"diode_direction": "COL2ROW",
"features": {
"bootmagic": true,
"command": false,
"console": false,
"extrakey": true,
"mousekey": true,
"nkro": true
},
"matrix_pins": {
"cols": ["C6", "D7", "E6", "B2"],
"rows": ["F4", "F5", "B6", "F7", "B1", "B3"]
},
"processor": "atmega32u4",
"url": "",
"usb": {
"device_version": "1.0.0",
"pid": "0x0001",
"vid": "0xCEE9"
},
"layouts": {
"LAYOUT_all": {
"layout": [
{"matrix":[2,3], "x":0, "y":0, "w":2, "h":2},
{"matrix":[0,2], "x":2.25, "y":0},
{"matrix":[0,3], "x":3.25, "y":0},
{"matrix":[1,2], "x":2.25, "y":1},
{"matrix":[1,3], "x":3.25, "y":1},
{"matrix":[2,0], "x":0, "y":2.25},
{"matrix":[2,1], "x":1, "y":2.25},
{"matrix":[2,2], "x":2, "y":2.25},
{"matrix":[3,3], "x":3.25, "y":2.25, "h":2},
{"matrix":[3,0], "x":0, "y":3.25},
{"matrix":[3,1], "x":1, "y":3.25},
{"matrix":[3,2], "x":2, "y":3.25},
{"matrix":[4,0], "x":0, "y":4.25},
{"matrix":[4,1], "x":1, "y":4.25},
{"matrix":[4,2], "x":2, "y":4.25},
{"matrix":[4,3], "x":3.25, "y":4.25},
{"matrix":[5,0], "x":0, "y":5.25},
{"matrix":[5,1], "x":1, "y":5.25},
{"matrix":[5,2], "x":2, "y":5.25},
{"matrix":[5,3], "x":3.25, "y":5.25}
]
}
}
}
+108
View File
@@ -0,0 +1,108 @@
#include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/*
* ┌───────┐ ┌───┬───┐
* │ │ │ < │ / │
* │ Ent │ ├───┼───┤
* │ │ │ > │ * │
* └───────┘ └───┴───┘
* ┌───┬───┬───┐ ┌───┐
* │ 7 │ 8 │ 9 │ │ │
* ├───┼───┼───┤ │ + │
* │ 5 │ 6 │ 7 │ │ │
* ├───┼───┼───┤ ├───┤
* │ 1 │ 2 │ 3 │ │ - │
* ├───┼───┼───┤ ├───┤
* │ALT│ 0 │ . │ │Bs │
* └───┴───┴───┘ └───┘
*/
[0] = LAYOUT_all(
KC_PENT, KC_LEFT, KC_PSLS,
KC_RGHT, KC_PAST,
KC_P7, KC_P8, KC_P9, KC_PPLS,
KC_P4, KC_P5, KC_P6,
KC_P1, KC_P2, KC_P3, KC_PMNS,
KC_LALT, KC_P0, KC_PDOT, KC_BSPC
),
/*
* ┌───────┐ ┌───┬───┐
* │ │ │ < │ / │
* │ Ent │ ├───┼───┤
* │ │ │ > │ * │
* └───────┘ └───┴───┘
* ┌───┬───┬───┐ ┌───┐
* │ 7 │ 8 │ 9 │ │ │
* ├───┼───┼───┤ │ + │
* │ 5 │ 6 │ 7 │ │ │
* ├───┼───┼───┤ ├───┤
* │ 1 │ 2 │ 3 │ │ - │
* ├───┼───┼───┤ ├───┤
* │ALT│ 0 │ . │ │Bs │
* └───┴───┴───┘ └───┘
*/
[1] = LAYOUT_all(
KC_PENT, KC_LEFT, KC_PSLS,
KC_RGHT, KC_PAST,
KC_P7, KC_P8, KC_P9, KC_PPLS,
KC_P4, KC_P5, KC_P6,
KC_P1, KC_P2, KC_P3, KC_PMNS,
KC_LALT, KC_P0, KC_PDOT, KC_BSPC
),
/*
* ┌───────┐ ┌───┬───┐
* │ │ │ < │ / │
* │ Ent │ ├───┼───┤
* │ │ │ > │ * │
* └───────┘ └───┴───┘
* ┌───┬───┬───┐ ┌───┐
* │ 7 │ 8 │ 9 │ │ │
* ├───┼───┼───┤ │ + │
* │ 5 │ 6 │ 7 │ │ │
* ├───┼───┼───┤ ├───┤
* │ 1 │ 2 │ 3 │ │ - │
* ├───┼───┼───┤ ├───┤
* │ALT│ 0 │ . │ │Bs │
* └───┴───┴───┘ └───┘
*/
[2] = LAYOUT_all(
KC_PENT, KC_LEFT, KC_PSLS,
KC_RGHT, KC_PAST,
KC_P7, KC_P8, KC_P9, KC_PPLS,
KC_P4, KC_P5, KC_P6,
KC_P1, KC_P2, KC_P3, KC_PMNS,
KC_LALT, KC_P0, KC_PDOT, KC_BSPC
),
/*
* ┌───────┐ ┌───┬───┐
* │ │ │ < │ / │
* │ Ent │ ├───┼───┤
* │ │ │ > │ * │
* └───────┘ └───┴───┘
* ┌───┬───┬───┐ ┌───┐
* │ 7 │ 8 │ 9 │ │ │
* ├───┼───┼───┤ │ + │
* │ 5 │ 6 │ 7 │ │ │
* ├───┼───┼───┤ ├───┤
* │ 1 │ 2 │ 3 │ │ - │
* ├───┼───┼───┤ ├───┤
* │ALT│ 0 │ . │ │Bs │
* └───┴───┴───┘ └───┘
*/
[3] = LAYOUT_all(
KC_PENT, KC_LEFT, KC_PSLS,
KC_RGHT, KC_PAST,
KC_P7, KC_P8, KC_P9, KC_PPLS,
KC_P4, KC_P5, KC_P6,
KC_P1, KC_P2, KC_P3, KC_PMNS,
KC_LALT, KC_P0, KC_PDOT, KC_BSPC
)
};
+108
View File
@@ -0,0 +1,108 @@
#include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/*
* ┌───────┐ ┌───┬───┐
* │ │ │ < │ / │
* │ Ent │ ├───┼───┤
* │ │ │ > │ * │
* └───────┘ └───┴───┘
* ┌───┬───┬───┐ ┌───┐
* │ 7 │ 8 │ 9 │ │ │
* ├───┼───┼───┤ │ + │
* │ 5 │ 6 │ 7 │ │ │
* ├───┼───┼───┤ ├───┤
* │ 1 │ 2 │ 3 │ │ - │
* ├───┼───┼───┤ ├───┤
* │ALT│ 0 │ . │ │Bs │
* └───┴───┴───┘ └───┘
*/
[0] = LAYOUT_all(
KC_PENT, KC_LEFT, KC_PSLS,
KC_RGHT, KC_PAST,
KC_P7, KC_P8, KC_P9, KC_PPLS,
KC_P4, KC_P5, KC_P6,
KC_P1, KC_P2, KC_P3, KC_PMNS,
KC_LALT, KC_P0, KC_PDOT, KC_BSPC
),
/*
* ┌───────┐ ┌───┬───┐
* │ │ │ < │ / │
* │ Ent │ ├───┼───┤
* │ │ │ > │ * │
* └───────┘ └───┴───┘
* ┌───┬───┬───┐ ┌───┐
* │ 7 │ 8 │ 9 │ │ │
* ├───┼───┼───┤ │ + │
* │ 5 │ 6 │ 7 │ │ │
* ├───┼───┼───┤ ├───┤
* │ 1 │ 2 │ 3 │ │ - │
* ├───┼───┼───┤ ├───┤
* │ALT│ 0 │ . │ │Bs │
* └───┴───┴───┘ └───┘
*/
[1] = LAYOUT_all(
KC_PENT, KC_LEFT, KC_PSLS,
KC_RGHT, KC_PAST,
KC_P7, KC_P8, KC_P9, KC_PPLS,
KC_P4, KC_P5, KC_P6,
KC_P1, KC_P2, KC_P3, KC_PMNS,
KC_LALT, KC_P0, KC_PDOT, KC_BSPC
),
/*
* ┌───────┐ ┌───┬───┐
* │ │ │ < │ / │
* │ Ent │ ├───┼───┤
* │ │ │ > │ * │
* └───────┘ └───┴───┘
* ┌───┬───┬───┐ ┌───┐
* │ 7 │ 8 │ 9 │ │ │
* ├───┼───┼───┤ │ + │
* │ 5 │ 6 │ 7 │ │ │
* ├───┼───┼───┤ ├───┤
* │ 1 │ 2 │ 3 │ │ - │
* ├───┼───┼───┤ ├───┤
* │ALT│ 0 │ . │ │Bs │
* └───┴───┴───┘ └───┘
*/
[2] = LAYOUT_all(
KC_PENT, KC_LEFT, KC_PSLS,
KC_RGHT, KC_PAST,
KC_P7, KC_P8, KC_P9, KC_PPLS,
KC_P4, KC_P5, KC_P6,
KC_P1, KC_P2, KC_P3, KC_PMNS,
KC_LALT, KC_P0, KC_PDOT, KC_BSPC
),
/*
* ┌───────┐ ┌───┬───┐
* │ │ │ < │ / │
* │ Ent │ ├───┼───┤
* │ │ │ > │ * │
* └───────┘ └───┴───┘
* ┌───┬───┬───┐ ┌───┐
* │ 7 │ 8 │ 9 │ │ │
* ├───┼───┼───┤ │ + │
* │ 5 │ 6 │ 7 │ │ │
* ├───┼───┼───┤ ├───┤
* │ 1 │ 2 │ 3 │ │ - │
* ├───┼───┼───┤ ├───┤
* │ALT│ 0 │ . │ │Bs │
* └───┴───┴───┘ └───┘
*/
[3] = LAYOUT_all(
KC_PENT, KC_LEFT, KC_PSLS,
KC_RGHT, KC_PAST,
KC_P7, KC_P8, KC_P9, KC_PPLS,
KC_P4, KC_P5, KC_P6,
KC_P1, KC_P2, KC_P3, KC_PMNS,
KC_LALT, KC_P0, KC_PDOT, KC_BSPC
)
};
+3
View File
@@ -0,0 +1,3 @@
VIA_ENABLE = yes
VIAL_ENABLE = yes
LTO_ENABLE = yes
@@ -0,0 +1,69 @@
{
"layouts": {
"keymap": [
[
{
"w": 2,
"h": 2
},
"2,3",
{
"x": 0.25
},
"0,2",
"0,3"
],
[
{
"x": 2.25
},
"1,2",
"1,3"
],
[
{
"y": 0.25
},
"2,0",
"2,1",
"2,2",
{
"x": 0.25,
"h": 2
},
"3,3"
],
[
"3,0",
"3,1",
"3,2"
],
[
"4,0",
"4,1",
"4,2",
{
"x": 0.25
},
"4,3"
],
[
"5,0",
"5,1",
"5,2",
{
"x": 0.25
},
"5,3"
]
]
},
"name": "sinpad20",
"vendorId": "0xCEE9",
"productId": "0x0001",
"lighting": "none",
"matrix": {
"rows": 6,
"cols": 4
}
}
+9
View File
@@ -0,0 +1,9 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
#pragma once
#define VIAL_KEYBOARD_UID {0xA6, 0x9A, 0x51, 0x3D, 0xF9, 0x02, 0x5C, 0x12}
#define VIAL_UNLOCK_COMBO_ROWS { 5, 5 }
#define VIAL_UNLOCK_COMBO_COLS { 0, 3 }
+108
View File
@@ -0,0 +1,108 @@
#include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/*
* ┌───────┐ ┌───┬───┐
* │ │ │ < │ / │
* │ Ent │ ├───┼───┤
* │ │ │ > │ * │
* └───────┘ └───┴───┘
* ┌───┬───┬───┐ ┌───┐
* │ 7 │ 8 │ 9 │ │ │
* ├───┼───┼───┤ │ + │
* │ 5 │ 6 │ 7 │ │ │
* ├───┼───┼───┤ ├───┤
* │ 1 │ 2 │ 3 │ │ - │
* ├───┼───┼───┤ ├───┤
* │ALT│ 0 │ . │ │Bs │
* └───┴───┴───┘ └───┘
*/
[0] = LAYOUT_all(
KC_PENT, KC_LEFT, KC_PSLS,
KC_RGHT, KC_PAST,
KC_P7, KC_P8, KC_P9, KC_PPLS,
KC_P4, KC_P5, KC_P6,
KC_P1, KC_P2, KC_P3, KC_PMNS,
KC_LALT, KC_P0, KC_PDOT, KC_BSPC
),
/*
* ┌───────┐ ┌───┬───┐
* │ │ │ < │ / │
* │ Ent │ ├───┼───┤
* │ │ │ > │ * │
* └───────┘ └───┴───┘
* ┌───┬───┬───┐ ┌───┐
* │ 7 │ 8 │ 9 │ │ │
* ├───┼───┼───┤ │ + │
* │ 5 │ 6 │ 7 │ │ │
* ├───┼───┼───┤ ├───┤
* │ 1 │ 2 │ 3 │ │ - │
* ├───┼───┼───┤ ├───┤
* │ALT│ 0 │ . │ │Bs │
* └───┴───┴───┘ └───┘
*/
[1] = LAYOUT_all(
KC_PENT, KC_LEFT, KC_PSLS,
KC_RGHT, KC_PAST,
KC_P7, KC_P8, KC_P9, KC_PPLS,
KC_P4, KC_P5, KC_P6,
KC_P1, KC_P2, KC_P3, KC_PMNS,
KC_LALT, KC_P0, KC_PDOT, KC_BSPC
),
/*
* ┌───────┐ ┌───┬───┐
* │ │ │ < │ / │
* │ Ent │ ├───┼───┤
* │ │ │ > │ * │
* └───────┘ └───┴───┘
* ┌───┬───┬───┐ ┌───┐
* │ 7 │ 8 │ 9 │ │ │
* ├───┼───┼───┤ │ + │
* │ 5 │ 6 │ 7 │ │ │
* ├───┼───┼───┤ ├───┤
* │ 1 │ 2 │ 3 │ │ - │
* ├───┼───┼───┤ ├───┤
* │ALT│ 0 │ . │ │Bs │
* └───┴───┴───┘ └───┘
*/
[2] = LAYOUT_all(
KC_PENT, KC_LEFT, KC_PSLS,
KC_RGHT, KC_PAST,
KC_P7, KC_P8, KC_P9, KC_PPLS,
KC_P4, KC_P5, KC_P6,
KC_P1, KC_P2, KC_P3, KC_PMNS,
KC_LALT, KC_P0, KC_PDOT, KC_BSPC
),
/*
* ┌───────┐ ┌───┬───┐
* │ │ │ < │ / │
* │ Ent │ ├───┼───┤
* │ │ │ > │ * │
* └───────┘ └───┴───┘
* ┌───┬───┬───┐ ┌───┐
* │ 7 │ 8 │ 9 │ │ │
* ├───┼───┼───┤ │ + │
* │ 5 │ 6 │ 7 │ │ │
* ├───┼───┼───┤ ├───┤
* │ 1 │ 2 │ 3 │ │ - │
* ├───┼───┼───┤ ├───┤
* │ALT│ 0 │ . │ │Bs │
* └───┴───┴───┘ └───┘
*/
[3] = LAYOUT_all(
KC_PENT, KC_LEFT, KC_PSLS,
KC_RGHT, KC_PAST,
KC_P7, KC_P8, KC_P9, KC_PPLS,
KC_P4, KC_P5, KC_P6,
KC_P1, KC_P2, KC_P3, KC_PMNS,
KC_LALT, KC_P0, KC_PDOT, KC_BSPC
)
};
+3
View File
@@ -0,0 +1,3 @@
VIA_ENABLE = yes
VIAL_ENABLE = yes
LTO_ENABLE = yes
+69
View File
@@ -0,0 +1,69 @@
{
"layouts": {
"keymap": [
[
{
"w": 2,
"h": 2
},
"2,3",
{
"x": 0.25
},
"0,2",
"0,3"
],
[
{
"x": 2.25
},
"1,2",
"1,3"
],
[
{
"y": 0.25
},
"2,0",
"2,1",
"2,2",
{
"x": 0.25,
"h": 2
},
"3,3"
],
[
"3,0",
"3,1",
"3,2"
],
[
"4,0",
"4,1",
"4,2",
{
"x": 0.25
},
"4,3"
],
[
"5,0",
"5,1",
"5,2",
{
"x": 0.25
},
"5,3"
]
]
},
"name": "sinpad20",
"vendorId": "0xCEE9",
"productId": "0x0001",
"lighting": "none",
"matrix": {
"rows": 6,
"cols": 4
}
}
+27
View File
@@ -0,0 +1,27 @@
# sinpad20
![sinpad20](https://i.imgur.com/RZzWVGe.png)
https://github.com/CountKeepo/sinpad20
* Keyboard Maintainer: [Count Keepo](https://github.com/CountKeepo)
* Hardware Supported: *Pro Micro*
* Hardware Availability: https://github.com/CountKeepo/sinpad20
Make example for this keyboard (after setting up your build environment):
make sinpad20:default
Flashing example for this keyboard:
make sinpad20: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 3 ways:
* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (usually the top left key or Escape) and plug in the keyboard
* **Physical reset button**: Briefly press the button on the back of the PCB - some may have pads you must short instead
* **Keycode in layout**: Press the key mapped to `RESET` if it is available
+1
View File
@@ -0,0 +1 @@
# This file intentionally left blank