Updated and tested barobord with Vial support

This commit is contained in:
Sadek Baroudi 2021-11-14 20:59:24 -08:00
parent 76a744cb85
commit b29cba7581
5 changed files with 642 additions and 52 deletions

View File

@ -3,7 +3,7 @@
"url": "https://github.com/sadekbaroudi/barobord",
"maintainer": "Sadek Baroudi <sadekbaroudi@gmail.com>",
"layouts": {
"LAYOUT": {
"LAYOUT_barobord": {
"layout": [
{"label":"K01", "x":1, "y":1.5}, {"label":"K02", "x":2, "y":1.125}, {"label":"K03", "x":3, "y":1}, {"label":"K04", "x":4, "y":1.125}, {"label":"K05", "x":5, "y":1.25}, {"label":"K06", "x":10.5, "y":1.25}, {"label":"K07", "x":11.5, "y":1.125}, {"label":"K08", "x":12.5, "y":1}, {"label":"K09", "x":13.5, "y":1.125}, {"label":"K10", "x":14.5, "y":1.5},
{"label":"K11", "x":1, "y":2.5}, {"label":"K12", "x":2, "y":2.125}, {"label":"K13", "x":3, "y":2}, {"label":"K14", "x":4, "y":2.125}, {"label":"K15", "x":5, "y":2.25}, {"label":"K16", "x":10.5, "y":2.25}, {"label":"K17", "x":11.5, "y":2.125}, {"label":"K18", "x":12.5, "y":2}, {"label":"K19", "x":13.5, "y":2.125}, {"label":"K20", "x":14.5, "y":2.5},

View File

@ -9,7 +9,6 @@
// Defines names for use in layer keycodes and the keymap
enum layer_names {
_QWERTY,
_COLEMAK,
_LOWER,
_RAISE,
_ADJUST
@ -46,31 +45,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_MUTE, LCTL(KC_BSPC) // These are for the rotary encoders
),
/* Colemak
*
* ,----------------------------------. ,----------------------------------.
* | Q | W | F | P | B | | J | L | U | Y | ; |
* |------+------+------+------+------| |------+------+------+------+------|
* | A | R | S | T | G | | M | N | E | I | O |
* |------+------+------+------+------| |------+------+------+------+------|
* | Z | X | C | D | V | | K | H | , | . | / |
* `-------------+--------------------' `----------------------------------'
* | | | | | |
* `------+------' `------+------'
* ,--------------------. ,--------------------.
* | LOWER| Enter| ' | |BckSpc| Space| RAISE|
* `--------------------' `--------------------.
*/
// Default config uses home row mods. So hold each of the keys on the home row to use ctrl, gui, alt, or shift
[_COLEMAK] = LAYOUT_barobord(
KC_Q, KC_W, KC_F, KC_P, KC_B, KC_J, KC_L, KC_U, KC_Y, KC_SCLN,
LCTL_T(KC_A), LGUI_T(KC_R), LALT_T(KC_S), LSFT_T(KC_T), KC_G, KC_M, RSFT_T(KC_N), RALT_T(KC_E), RGUI_T(KC_I), RCTL_T(KC_O),
KC_Z, KC_X, KC_C, KC_D, KC_V, KC_K, KC_H, KC_COMM, KC_DOT, KC_SLSH,
_______, _______, LOWER, KC_ENT, KC_QUOT, KC_BSPC, KC_SPC, RAISE, _______, _______,
KC_MUTE, LCTL(KC_BSPC) // These are for the rotary encoders
),
/* Raise
*
* ,----------------------------------. ,----------------------------------.
@ -134,7 +108,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
*/
[_ADJUST] = LAYOUT_barobord(
RGB_TOG, RGB_RMOD, RGB_MOD, _______, TO(_QWERTY), KC_F1, KC_F2, KC_F3, KC_F4, KC_F5,
RGB_SPI, RGB_HUI, RGB_SAI, RGB_VAI, TO(_COLEMAK), KC_F6, KC_F7, KC_F8, KC_F9, KC_F10,
RGB_SPI, RGB_HUI, RGB_SAI, RGB_VAI, _______, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10,
RGB_SPD, RGB_HUD, RGB_SAD, RGB_VAD, _______, KC_F11, KC_F12, _______, _______, RESET,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______
@ -151,9 +125,6 @@ layer_state_t layer_state_set_user(layer_state_t state) {
trackball_set_rgbw(RGB_BLUE, 0x00);
}
break;
case _COLEMAK:
trackball_set_rgbw(RGB_GREEN, 0x00);
break;
case _LOWER:
trackball_set_rgbw(RGB_PURPLE, 0x00);
break;

View File

@ -0,0 +1,301 @@
[
[
{
"y": 5.5,
"x": 5.5
},
"2,10\nenc1",
{
"x": 0.25
},
"3,10\nenc2"
],
[
{
"r": 25,
"rx": 1,
"y": -0.09999999999999998,
"x": 3
},
"0,2"
],
[
{
"y": -0.65,
"x": 2
},
"0,1",
{
"x": 1
},
"0,3"
],
[
{
"y": -0.85,
"x": 5
},
"0,4"
],
[
{
"y": -0.4999999999999999,
"x": 3,
"c": "#5dd971"
},
"1,2\nAlt"
],
[
{
"y": -0.8999999999999999,
"x": 1,
"c": "#cccccc"
},
"0,0"
],
[
{
"y": -0.75,
"x": 2,
"c": "#5dd971"
},
"1,1\nWin",
{
"x": 1
},
"1,3\nShift"
],
[
{
"y": -0.8500000000000001,
"x": 5,
"c": "#cccccc"
},
"1,4"
],
[
{
"y": -0.5,
"x": 3
},
"2,2"
],
[
{
"y": -0.8999999999999999,
"x": 1,
"c": "#5dd971"
},
"1,0\nCtrl"
],
[
{
"y": -0.75,
"x": 2,
"c": "#cccccc"
},
"2,1",
{
"x": 1
},
"2,3"
],
[
{
"y": -0.8500000000000001,
"x": 5
},
"2,4"
],
[
{
"y": -0.5,
"x": 3
},
"3,1"
],
[
{
"y": -0.8999999999999999,
"x": 1
},
"2,0"
],
[
{
"y": -0.75,
"x": 2
},
"3,0"
],
[
{
"x": 4,
"c": "#9fa9ed"
},
"3,2"
],
[
{
"r": 35,
"y": -2,
"x": 5.9,
"c": "#cccccc"
},
"3,3"
],
[
{
"r": 45,
"y": -2.25,
"x": 7.6
},
"3,4"
],
[
{
"r": -45,
"rx": 10.65,
"ry": 4.5,
"y": -0.09999999999999964,
"x": -4.25
},
"3,5"
],
[
{
"r": -35,
"y": -0.4500000000000002,
"x": -3
},
"3,6"
],
[
{
"r": -25,
"y": -0.7000000000000002,
"x": -1.6500000000000004,
"c": "#ffabab"
},
"3,7"
],
[
{
"rx": 11.1,
"ry": 4.3,
"y": -3.535,
"x": -1.0999999999999996,
"c": "#cccccc"
},
"0,7"
],
[
{
"y": -0.6499999999999999,
"x": -2.0999999999999996
},
"0,6",
{
"x": 1
},
"0,8"
],
[
{
"y": -0.8499999999999999,
"x": -3.0999999999999996
},
"0,5"
],
[
{
"y": -0.5,
"x": -1.0999999999999996,
"c": "#5dd971"
},
"1,7\nAlt"
],
[
{
"y": -0.8999999999999997,
"x": 0.9000000000000004,
"c": "#cccccc"
},
"0,9"
],
[
{
"y": -0.7500000000000004,
"x": -2.0999999999999996,
"c": "#5dd971"
},
"1,6\nShift",
{
"x": 1
},
"1,8\nWin"
],
[
{
"y": -0.8499999999999996,
"x": -3.0999999999999996,
"c": "#cccccc"
},
"1,5"
],
[
{
"y": -0.5000000000000004,
"x": -1.0999999999999996
},
"2,7"
],
[
{
"y": -0.8999999999999995,
"x": 0.9000000000000004,
"c": "#5dd971"
},
"1,9\nCtrl"
],
[
{
"y": -0.7500000000000004,
"x": -2.0999999999999996,
"c": "#cccccc"
},
"2,6",
{
"x": 1
},
"2,8"
],
[
{
"y": -0.8500000000000001,
"x": -3.0999999999999996
},
"2,5"
],
[
{
"y": -0.5000000000000004,
"x": -1.0999999999999996
},
"3,8"
],
[
{
"y": -0.9000000000000004,
"x": 0.9000000000000004
},
"2,9"
],
[
{
"y": -0.75,
"x": -0.09999999999999964
},
"3,9"
]
]

View File

@ -4,31 +4,36 @@ An ergonomic 30% keyboard
* Keyboard Maintainer: [sadekbaroudi](https://github.com/sadekbaroudi)
Barobord supports vial! Build the via keymap as shown in the commands, and then use Vial to sideload via.json
To build the firmware for this keyboard (after setting up your build environment), select from one of the following, depending on what features you have on your board:
make xoiviox/barobord/ec11:default
make xoiviox/barobord/evq:default
make xoiviox/barobord/no-features:default
make xoiviox/barobord/oled:default
make xoiviox/barobord/oled-ec11:default
make xoiviox/barobord/oled-evq:default
make xoiviox/barobord/pimoroni:default
make xoiviox/barobord/pimoroni-ec11:default
make xoiviox/barobord/pimoroni-evq:default
make xoiviox/barobord/readme.md:default
make xoiviox/barobord/rgblight:default
make xoiviox/barobord/rgblight-oled-ec11:default
make xoiviox/barobord/rgblight-oled-evq:default
make xoiviox/barobord/rgblight-pimoroni-ec11:default
make xoiviox/barobord/rgblight-pimoroni-evq:default
make xoiviox/barobord/rgbmatrix:default
make xoiviox/barobord/rgbmatrix-oled-ec11:default
make xoiviox/barobord/rgbmatrix-oled-evq:default
make xoiviox/barobord/rgbmatrix-pimoroni-ec11:default
make xoiviox/barobord/rgbmatrix-pimoroni-evq:default
make xoiviox/barobord/ec11:via
make xoiviox/barobord/evq:via
make xoiviox/barobord/no-features:via
make xoiviox/barobord/oled:via
make xoiviox/barobord/oled-ec11:via
make xoiviox/barobord/oled-evq:via
make xoiviox/barobord/pimoroni:via
make xoiviox/barobord/pimoroni-ec11:via
make xoiviox/barobord/pimoroni-evq:via
make xoiviox/barobord/readme.md:via
make xoiviox/barobord/rgblight:via
make xoiviox/barobord/rgblight-oled-ec11:via
make xoiviox/barobord/rgblight-oled-evq:via
make xoiviox/barobord/rgblight-pimoroni-ec11:via
make xoiviox/barobord/rgblight-pimoroni-evq:via
make xoiviox/barobord/rgbmatrix:via
make xoiviox/barobord/rgbmatrix-oled-ec11:via
make xoiviox/barobord/rgbmatrix-oled-evq:via
make xoiviox/barobord/rgbmatrix-pimoroni-ec11:via
make xoiviox/barobord/rgbmatrix-pimoroni-evq:via
Example of flashing this keyboard:
make xoiviox/barobord/no-features:default:flash
make xoiviox/barobord/no-features:via:flash
Once you have completed the build, flash it onto your keyboard. At this point, make sure you have [Vial](https://get.vial.today/) installed. Use the "Sideload VIA JSON" and use the via.json found in this directory. You should be able to edit your keymap directly from your machine!
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).

View File

@ -0,0 +1,313 @@
{
"name": "barobord",
"vendorId": "0xFEFE",
"productId": "0x5850",
"matrix": {"rows": 4, "cols": 11},
"lighting": "qmk_rgblight",
"layouts": {
"labels": [
["Layout"]
],
"keymap": [
[
{
"y": 5.5,
"x": 5.5
},
"2,10\nenc1",
{
"x": 0.25
},
"3,10\nenc2"
],
[
{
"r": 25,
"rx": 1,
"y": -0.09999999999999998,
"x": 3
},
"0,2"
],
[
{
"y": -0.65,
"x": 2
},
"0,1",
{
"x": 1
},
"0,3"
],
[
{
"y": -0.85,
"x": 5
},
"0,4"
],
[
{
"y": -0.4999999999999999,
"x": 3,
"c": "#5dd971"
},
"1,2\nAlt"
],
[
{
"y": -0.8999999999999999,
"x": 1,
"c": "#cccccc"
},
"0,0"
],
[
{
"y": -0.75,
"x": 2,
"c": "#5dd971"
},
"1,1\nWin",
{
"x": 1
},
"1,3\nShift"
],
[
{
"y": -0.8500000000000001,
"x": 5,
"c": "#cccccc"
},
"1,4"
],
[
{
"y": -0.5,
"x": 3
},
"2,2"
],
[
{
"y": -0.8999999999999999,
"x": 1,
"c": "#5dd971"
},
"1,0\nCtrl"
],
[
{
"y": -0.75,
"x": 2,
"c": "#cccccc"
},
"2,1",
{
"x": 1
},
"2,3"
],
[
{
"y": -0.8500000000000001,
"x": 5
},
"2,4"
],
[
{
"y": -0.5,
"x": 3
},
"3,1"
],
[
{
"y": -0.8999999999999999,
"x": 1
},
"2,0"
],
[
{
"y": -0.75,
"x": 2
},
"3,0"
],
[
{
"x": 4,
"c": "#9fa9ed"
},
"3,2"
],
[
{
"r": 35,
"y": -2,
"x": 5.9,
"c": "#cccccc"
},
"3,3"
],
[
{
"r": 45,
"y": -2.25,
"x": 7.6
},
"3,4"
],
[
{
"r": -45,
"rx": 10.65,
"ry": 4.5,
"y": -0.09999999999999964,
"x": -4.25
},
"3,5"
],
[
{
"r": -35,
"y": -0.4500000000000002,
"x": -3
},
"3,6"
],
[
{
"r": -25,
"y": -0.7000000000000002,
"x": -1.6500000000000004,
"c": "#ffabab"
},
"3,7"
],
[
{
"rx": 11.1,
"ry": 4.3,
"y": -3.535,
"x": -1.0999999999999996,
"c": "#cccccc"
},
"0,7"
],
[
{
"y": -0.6499999999999999,
"x": -2.0999999999999996
},
"0,6",
{
"x": 1
},
"0,8"
],
[
{
"y": -0.8499999999999999,
"x": -3.0999999999999996
},
"0,5"
],
[
{
"y": -0.5,
"x": -1.0999999999999996,
"c": "#5dd971"
},
"1,7\nAlt"
],
[
{
"y": -0.8999999999999997,
"x": 0.9000000000000004,
"c": "#cccccc"
},
"0,9"
],
[
{
"y": -0.7500000000000004,
"x": -2.0999999999999996,
"c": "#5dd971"
},
"1,6\nShift",
{
"x": 1
},
"1,8\nWin"
],
[
{
"y": -0.8499999999999996,
"x": -3.0999999999999996,
"c": "#cccccc"
},
"1,5"
],
[
{
"y": -0.5000000000000004,
"x": -1.0999999999999996
},
"2,7"
],
[
{
"y": -0.8999999999999995,
"x": 0.9000000000000004,
"c": "#5dd971"
},
"1,9\nCtrl"
],
[
{
"y": -0.7500000000000004,
"x": -2.0999999999999996,
"c": "#cccccc"
},
"2,6",
{
"x": 1
},
"2,8"
],
[
{
"y": -0.8500000000000001,
"x": -3.0999999999999996
},
"2,5"
],
[
{
"y": -0.5000000000000004,
"x": -1.0999999999999996
},
"3,8"
],
[
{
"y": -0.9000000000000004,
"x": 0.9000000000000004
},
"2,9"
],
[
{
"y": -0.75,
"x": -0.09999999999999964
},
"3,9"
]
]
}
}