SixKeyBoard refactor (#3193)
* Refactor: create matrix macro * Readme changes * Configurator support
This commit is contained in:
parent
2435a52655
commit
eccfb8d55e
12
keyboards/sixkeyboard/info.json
Normal file
12
keyboards/sixkeyboard/info.json
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"keyboard_name": "Techkeys SixKeyBoard",
|
||||
"url": "",
|
||||
"maintainer": "qmk",
|
||||
"width": 3,
|
||||
"height": 2,
|
||||
"layouts": {
|
||||
"LAYOUT": {
|
||||
"layout": [{"label":"k00", "x":0, "y":0}, {"label":"k01", "x":1, "y":0}, {"label":"k02", "x":2, "y":0}, {"label":"k10", "x":0, "y":1}, {"label":"k11", "x":1, "y":1}, {"label":"k12", "x":2, "y":1}]
|
||||
}
|
||||
}
|
||||
}
|
@ -1,12 +1,12 @@
|
||||
|
||||
#include "sixkeyboard.h"
|
||||
#include QMK_KEYBOARD_H
|
||||
#include "matrix.h"
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[0] = {
|
||||
{KC_A, KC_B, KC_C},
|
||||
{KC_D, KC_E, KC_F}
|
||||
}
|
||||
[0] = LAYOUT(
|
||||
KC_A, KC_B, KC_C, \
|
||||
KC_D, KC_E, KC_F \
|
||||
)
|
||||
};
|
||||
|
||||
const uint16_t PROGMEM fn_actions[] = {
|
||||
|
@ -3,7 +3,7 @@ Techkeys SixKeyBoard
|
||||
|
||||
Keyboard Maintainer: QMK Community
|
||||
Hardware Supported: Techkeys SixKeyBoard PCB
|
||||
Hardware Availability: http://techkeys.us/collections/accessories/products/sixkeyboard
|
||||
Hardware Availability: [Techkeys](http://techkeys.us/collections/accessories/products/sixkeyboard)
|
||||
|
||||
Make example for this keyboard (after setting up your build environment):
|
||||
|
||||
|
@ -15,4 +15,20 @@
|
||||
// instead of the obtuse 11x8 matrix.
|
||||
|
||||
|
||||
/*
|
||||
* ┌───┬───┬───┐
|
||||
* │ A │ B │ C │
|
||||
* ├───┼───┼───┤
|
||||
* │ D │ E │ F │
|
||||
* └───┴───┴───┘
|
||||
*/
|
||||
#define LAYOUT( \
|
||||
k00, k01, k02, \
|
||||
k10, k11, k12 \
|
||||
) { \
|
||||
{ k00, k01, k02 }, \
|
||||
{ k10, k11, k12 } \
|
||||
}
|
||||
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user