Keyboard: handwired/fivethirteen Refactor, Configurator support, and readme cleanup (#4559)
* handwired/fivethirteen: refactor - Layout macro KEYMAP renamed to LAYOUT - Default keymap - now uses #include QMK_KEYBOARD_H - Removed redundant KC_TRNS definition - Removed deprecated fn_actions and action_get_macro functions. * handwired/fivethirteen: Configurator support * handwired/fivethirteen: readme cleanup Restructured readme file to be closer to current QMK template. Couldn't find a photo of an assembled fivethirteen, so deleted the reference to the photograph. Renamed to readme.md
This commit is contained in:
parent
58670ef4b7
commit
8ad561c8f0
5 changed files with 105 additions and 55 deletions
|
@ -1,28 +0,0 @@
|
||||||
fivethirteen keyboard firmware
|
|
||||||
======================
|
|
||||||
|
|
||||||
## Quantum MK Firmware
|
|
||||||
|
|
||||||
For the full Quantum feature list, see [the parent readme.md](/doc/README.md).
|
|
||||||
|
|
||||||
## Building
|
|
||||||
|
|
||||||
Download or clone the whole firmware and navigate to the keyboards/handwired/fivethirteen folder.
|
|
||||||
Once your dev env is setup, you'll be able to type `make` to generate your .hex - you can then use
|
|
||||||
the Teensy Loader to program your .hex file.
|
|
||||||
|
|
||||||
Depending on which keymap you would like to use, you will have to compile slightly differently.
|
|
||||||
|
|
||||||
### Default
|
|
||||||
|
|
||||||
To build with the default keymap, simply run `make`.
|
|
||||||
|
|
||||||
### Other Keymaps
|
|
||||||
|
|
||||||
To build the firmware binary hex file with a keymap just do `make` with `keymap` option like:
|
|
||||||
|
|
||||||
```
|
|
||||||
$ make keymap=[default|jack|<name>]
|
|
||||||
```
|
|
||||||
|
|
||||||
Keymaps follow the format **__keymap.c__** and are stored in folders in the `keymaps` folder, eg `keymaps/my_keymap/`
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
#include "quantum.h"
|
#include "quantum.h"
|
||||||
|
|
||||||
#define KEYMAP( \
|
#define LAYOUT( \
|
||||||
k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k010, k011, k012, \
|
k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k010, k011, k012, \
|
||||||
k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k110, k111, k112, \
|
k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k110, k111, k112, \
|
||||||
k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k210, k211, k212, \
|
k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k210, k211, k212, \
|
||||||
|
|
77
keyboards/handwired/fivethirteen/info.json
Normal file
77
keyboards/handwired/fivethirteen/info.json
Normal file
|
@ -0,0 +1,77 @@
|
||||||
|
{
|
||||||
|
"keyboard_name": "fivethirteen",
|
||||||
|
"url": "",
|
||||||
|
"maintainer": "qmk",
|
||||||
|
"width": 13,
|
||||||
|
"height": 5,
|
||||||
|
"layouts": {
|
||||||
|
"LAYOUT": {
|
||||||
|
"layout": [
|
||||||
|
{"label":"Esc", "x":0, "y":0},
|
||||||
|
{"label":"1", "x":1, "y":0},
|
||||||
|
{"label":"2", "x":2, "y":0},
|
||||||
|
{"label":"3", "x":3, "y":0},
|
||||||
|
{"label":"4", "x":4, "y":0},
|
||||||
|
{"label":"5", "x":5, "y":0},
|
||||||
|
{"label":"6", "x":6, "y":0},
|
||||||
|
{"label":"7", "x":7, "y":0},
|
||||||
|
{"label":"8", "x":8, "y":0},
|
||||||
|
{"label":"9", "x":9, "y":0},
|
||||||
|
{"label":"0", "x":10, "y":0},
|
||||||
|
{"label":"-", "x":11, "y":0},
|
||||||
|
{"label":"=", "x":12, "y":0},
|
||||||
|
{"label":"Tab", "x":0, "y":1},
|
||||||
|
{"label":"Q", "x":1, "y":1},
|
||||||
|
{"label":"W", "x":2, "y":1},
|
||||||
|
{"label":"E", "x":3, "y":1},
|
||||||
|
{"label":"R", "x":4, "y":1},
|
||||||
|
{"label":"T", "x":5, "y":1},
|
||||||
|
{"label":"Y", "x":6, "y":1},
|
||||||
|
{"label":"U", "x":7, "y":1},
|
||||||
|
{"label":"I", "x":8, "y":1},
|
||||||
|
{"label":"O", "x":9, "y":1},
|
||||||
|
{"label":"P", "x":10, "y":1},
|
||||||
|
{"label":"[", "x":11, "y":1},
|
||||||
|
{"label":"]", "x":12, "y":1},
|
||||||
|
{"label":"Ctrl/Esc", "x":0, "y":2},
|
||||||
|
{"label":"A", "x":1, "y":2},
|
||||||
|
{"label":"S", "x":2, "y":2},
|
||||||
|
{"label":"D", "x":3, "y":2},
|
||||||
|
{"label":"F", "x":4, "y":2},
|
||||||
|
{"label":"G", "x":5, "y":2},
|
||||||
|
{"label":"H", "x":6, "y":2},
|
||||||
|
{"label":"J", "x":7, "y":2},
|
||||||
|
{"label":"K", "x":8, "y":2},
|
||||||
|
{"label":"L", "x":9, "y":2},
|
||||||
|
{"label":";", "x":10, "y":2},
|
||||||
|
{"label":"'", "x":11, "y":2},
|
||||||
|
{"label":"Enter", "x":12, "y":2},
|
||||||
|
{"label":"Shift", "x":0, "y":3},
|
||||||
|
{"label":"Z", "x":1, "y":3},
|
||||||
|
{"label":"X", "x":2, "y":3},
|
||||||
|
{"label":"C", "x":3, "y":3},
|
||||||
|
{"label":"V", "x":4, "y":3},
|
||||||
|
{"label":"B", "x":5, "y":3},
|
||||||
|
{"label":"N", "x":6, "y":3},
|
||||||
|
{"label":"M", "x":7, "y":3},
|
||||||
|
{"label":",", "x":8, "y":3},
|
||||||
|
{"label":".", "x":9, "y":3},
|
||||||
|
{"label":"/", "x":10, "y":3},
|
||||||
|
{"label":"Up", "x":11, "y":3},
|
||||||
|
{"label":"\\", "x":12, "y":3},
|
||||||
|
{"label":"MO(MOS)", "x":0, "y":4},
|
||||||
|
{"label":"Ctrl", "x":1, "y":4},
|
||||||
|
{"label":"Alt", "x":2, "y":4},
|
||||||
|
{"label":"GUI", "x":3, "y":4},
|
||||||
|
{"label":"MO(HDN)", "x":4, "y":4},
|
||||||
|
{"label":"Space", "x":5, "y":4, "w":2},
|
||||||
|
{"label":"Shift/Backspace", "x":7, "y":4},
|
||||||
|
{"label":"MO(OSY)", "x":8, "y":4},
|
||||||
|
{"label":"MO(HDN)", "x":9, "y":4},
|
||||||
|
{"label":"Left", "x":10, "y":4},
|
||||||
|
{"label":"Down", "x":11, "y":4},
|
||||||
|
{"label":"Right", "x":12, "y":4}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,6 +1,4 @@
|
||||||
#include "fivethirteen.h"
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
#define _______ KC_TRNS
|
|
||||||
|
|
||||||
#define HDN 1
|
#define HDN 1
|
||||||
#define OSY 2
|
#define OSY 2
|
||||||
|
@ -9,28 +7,28 @@
|
||||||
#define SFT_BSP SFT_T(KC_BSPC)
|
#define SFT_BSP SFT_T(KC_BSPC)
|
||||||
|
|
||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
[0] = KEYMAP(
|
[0] = LAYOUT(
|
||||||
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, \
|
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, \
|
||||||
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, \
|
KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, \
|
||||||
CTL_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, \
|
CTL_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, \
|
||||||
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_UP, KC_BSLS, \
|
KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_UP, KC_BSLS, \
|
||||||
MO(MOS), KC_LCTL, KC_LALT, KC_LGUI, MO(HDN), KC_SPC , SFT_BSP, MO(OSY), MO(HDN), KC_LEFT, KC_DOWN, KC_RGHT \
|
MO(MOS), KC_LCTL, KC_LALT, KC_LGUI, MO(HDN), KC_SPC , SFT_BSP, MO(OSY), MO(HDN), KC_LEFT, KC_DOWN, KC_RGHT \
|
||||||
),
|
),
|
||||||
[HDN] = KEYMAP(
|
[HDN] = LAYOUT(
|
||||||
_______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, \
|
_______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, \
|
||||||
_______, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______, _______, \
|
_______, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______, _______, \
|
||||||
_______, KC_TILD, KC_GRV, KC_BSLS, KC_PIPE, KC_MINS, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_TILD, KC_GRV, _______, \
|
_______, KC_TILD, KC_GRV, KC_BSLS, KC_PIPE, KC_MINS, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_TILD, KC_GRV, _______, \
|
||||||
_______, _______, _______, _______, _______, _______, _______, KC_ENT, _______, _______, _______, KC_PGUP, _______, \
|
_______, _______, _______, _______, _______, _______, _______, KC_ENT, _______, _______, _______, KC_PGUP, _______, \
|
||||||
_______, _______, _______, _______, _______, KC_UNDS , KC_DEL, _______, _______, KC_HOME, KC_PGDN, KC_END \
|
_______, _______, _______, _______, _______, KC_UNDS , KC_DEL, _______, _______, KC_HOME, KC_PGDN, KC_END \
|
||||||
),
|
),
|
||||||
[OSY] = KEYMAP(
|
[OSY] = LAYOUT(
|
||||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||||
_______, KC_VOLD, KC_VOLU, KC_MUTE, KC_PWR, _______, _______, _______, _______, _______, _______, _______, _______, \
|
_______, KC_VOLD, KC_VOLU, KC_MUTE, KC_PWR, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ \
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ \
|
||||||
),
|
),
|
||||||
[MOS] = KEYMAP(
|
[MOS] = LAYOUT(
|
||||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||||
_______, _______, _______, _______, _______, _______, _______, KC_BTN1, KC_BTN2, _______, _______, _______, _______, \
|
_______, _______, _______, _______, _______, _______, _______, KC_BTN1, KC_BTN2, _______, _______, _______, _______, \
|
||||||
_______, _______, _______, _______, _______, _______, KC_MS_L, KC_MS_D, KC_MS_U, KC_MS_R, _______, _______, _______, \
|
_______, _______, _______, _______, _______, _______, KC_MS_L, KC_MS_D, KC_MS_U, KC_MS_R, _______, _______, _______, \
|
||||||
|
@ -38,12 +36,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ \
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ \
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
const uint16_t PROGMEM fn_actions[] = {
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) {
|
|
||||||
return MACRO_NONE;
|
|
||||||
};
|
|
||||||
|
|
12
keyboards/handwired/fivethirteen/readme.md
Normal file
12
keyboards/handwired/fivethirteen/readme.md
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
# fivethirteen
|
||||||
|
|
||||||
|
A handwired 5x13 ortholinear keyboard with a 2U space bar.
|
||||||
|
|
||||||
|
Keyboard Maintainer: [The QMK Community](https://github.com/qmk)
|
||||||
|
Hardware Supported: fivethirteen handwired
|
||||||
|
|
||||||
|
Make example for this keyboard (after setting up your build environment):
|
||||||
|
|
||||||
|
make handwired/fivethirteen:default
|
||||||
|
|
||||||
|
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).
|
Loading…
Reference in a new issue