From bec2d660d6c014024667e2aee2fa6384e07120c4 Mon Sep 17 00:00:00 2001 From: Kristofer Date: Mon, 10 Apr 2023 03:03:31 +0200 Subject: [PATCH] Port SteamVan rev1 to Vial (#429) * Start porting SteamVan rev1 * Port SteamVan rev1 * Update readme.md * Update readme.md * Update readme.md * Update keymap.c --- .../handwired/steamvan/keymaps/vial/config.h | 7 + .../handwired/steamvan/keymaps/vial/keymap.c | 60 +++++++ .../handwired/steamvan/keymaps/vial/readme.md | 2 + .../handwired/steamvan/keymaps/vial/rules.mk | 2 + .../handwired/steamvan/keymaps/vial/vial.json | 153 ++++++++++++++++++ 5 files changed, 224 insertions(+) create mode 100644 keyboards/handwired/steamvan/keymaps/vial/config.h create mode 100644 keyboards/handwired/steamvan/keymaps/vial/keymap.c create mode 100644 keyboards/handwired/steamvan/keymaps/vial/readme.md create mode 100644 keyboards/handwired/steamvan/keymaps/vial/rules.mk create mode 100644 keyboards/handwired/steamvan/keymaps/vial/vial.json diff --git a/keyboards/handwired/steamvan/keymaps/vial/config.h b/keyboards/handwired/steamvan/keymaps/vial/config.h new file mode 100644 index 0000000000..2ae2574576 --- /dev/null +++ b/keyboards/handwired/steamvan/keymaps/vial/config.h @@ -0,0 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#pragma once + +#define VIAL_KEYBOARD_UID {0x7B, 0x61, 0xAC, 0x64, 0xC9, 0x02, 0x6D, 0x1A} +#define VIAL_UNLOCK_COMBO_ROWS { 0, 2 } +#define VIAL_UNLOCK_COMBO_COLS { 0, 11 } diff --git a/keyboards/handwired/steamvan/keymaps/vial/keymap.c b/keyboards/handwired/steamvan/keymaps/vial/keymap.c new file mode 100644 index 0000000000..e612a7a6f5 --- /dev/null +++ b/keyboards/handwired/steamvan/keymaps/vial/keymap.c @@ -0,0 +1,60 @@ +/* Copyright 2019 John M Daly + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +#include QMK_KEYBOARD_H + +// This file is based on the default keymap of the MiniVan. + +enum layer_names { + _QW, + _L1, + _L2, + _L3, +}; + +// Curly braces have their own keys. These are defined to make them not mess up +// the grid in layer 2. +#define L_CURBR LSFT(KC_LBRC) +#define R_CURBR LSFT(KC_RBRC) + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [_QW] = LAYOUT_standard( /* QWERTY */ + KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, + MO(_L1), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, MO(_L1), + KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, MO(_L2), + KC_LCTL, MO(_L2), KC_LGUI, KC_ENT, KC_SPC, KC_RALT, KC_ESC, TG(_L3) + ), + + [_L1] = LAYOUT_standard( /* LAYER 1 */ + KC_GRV, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL, + _______, KC_BSLS, KC_QUOT, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_DOWN, KC_UP, KC_LEFT, KC_RGHT, _______, + _______, KC_ESC, _______, KC_PSCR, _______, _______, _______, KC_MSTP, KC_MPLY, KC_MPRV, KC_MNXT, KC_RSFT, + _______, KC_LGUI, _______, _______, _______, _______, _______, _______ + ), + + [_L2] = LAYOUT_standard( /* LAYER 2 */ + _______, _______, _______, _______, _______, _______, _______, KC_7, KC_8, KC_9, KC_0, _______, + KC_ESC, KC_PIPE, KC_DQUO, KC_UNDS, KC_PLUS, L_CURBR, R_CURBR, KC_4, KC_5, KC_6, KC_VOLU, KC_ENT, + _______, _______, _______, _______, _______, _______, KC_0, KC_1, KC_2, KC_3, KC_VOLD, _______, + _______, _______, _______, _______, _______, _______, _______, _______ + ), + + [_L3] = LAYOUT_standard( /* LAYER 3 */ + _______, _______, _______, _______, _______, _______, _______, KC_F1, KC_F2, KC_F3, KC_F4, _______, + KC_ESC, _______, _______, _______, _______, _______, _______, KC_F5, KC_F6, KC_F7, KC_F8, _______, + KC_LSFT, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_F9, KC_F10, KC_F11, KC_F12, _______, + _______, KC_LSFT, KC_B, KC_SPC, KC_C, _______, _______, _______ + ) +}; diff --git a/keyboards/handwired/steamvan/keymaps/vial/readme.md b/keyboards/handwired/steamvan/keymaps/vial/readme.md new file mode 100644 index 0000000000..9bb3f35c29 --- /dev/null +++ b/keyboards/handwired/steamvan/keymaps/vial/readme.md @@ -0,0 +1,2 @@ +# SteamVan rev1 Vial +Based on the default SteamVan layout diff --git a/keyboards/handwired/steamvan/keymaps/vial/rules.mk b/keyboards/handwired/steamvan/keymaps/vial/rules.mk new file mode 100644 index 0000000000..4f7618e9b2 --- /dev/null +++ b/keyboards/handwired/steamvan/keymaps/vial/rules.mk @@ -0,0 +1,2 @@ +VIA_ENABLE = yes +VIAL_ENABLE = yes diff --git a/keyboards/handwired/steamvan/keymaps/vial/vial.json b/keyboards/handwired/steamvan/keymaps/vial/vial.json new file mode 100644 index 0000000000..87eee470d7 --- /dev/null +++ b/keyboards/handwired/steamvan/keymaps/vial/vial.json @@ -0,0 +1,153 @@ +{ + "name": "SteamVan", + "vendorId": "0xFEED", + "productId": "0x0001", + "lighting": "qmk_rgblight", + "matrix": { + "rows": 4, + "cols": 12 + }, + "layouts": { + "labels": [ + "Arrows", + "Command" + ], + "keymap": [ + [ + { + "c": "#777777" + }, + "0,0", + { + "c": "#cccccc" + }, + "0,1", + "0,2", + "0,3", + "0,4", + "0,5", + "0,6", + "0,7", + "0,8", + "0,9", + "0,10", + { + "c": "#aaaaaa", + "w": 1.75 + }, + "0,11" + ], + [ + { + "w": 1.25 + }, + "1,0", + { + "c": "#cccccc" + }, + "1,1", + "1,2", + "1,3", + "1,4", + "1,5", + "1,6", + "1,7", + "1,8", + "1,9", + "1,10", + { + "c": "#aaaaaa", + "w": 1.5 + }, + "1,11" + ], + [ + { + "w": 1.75 + }, + "2,0", + { + "c": "#cccccc" + }, + "2,1", + "2,2", + "2,3", + "2,4", + "2,5", + "2,6", + "2,7", + "2,8", + "2,9", + "2,10\n\n\n0,0", + { + "c": "#aaaaaa" + }, + "2,11" + ], + [ + { + "w": 1.25 + }, + "3,0\n\n\n1,0", + { + "w": 1.5 + }, + "3,1\n\n\n1,0", + { + "w": 1.25 + }, + "3,3\n\n\n1,0", + { + "c": "#777777", + "w": 2.25 + }, + "3,4", + { + "c": "#aaaaaa", + "w": 2 + }, + "3,6", + { + "w": 1.25 + }, + "3,8\n\n\n0,0", + { + "w": 1.5 + }, + "3,9\n\n\n0,0", + { + "w": 1.75 + }, + "3,11\n\n\n0,0" + ], + [ + { + "y": 0.25, + "x": 10.75, + "c": "#777777" + }, + "2,10\n\n\n0,1" + ], + [ + { + "c": "#aaaaaa" + }, + "3,0\n\n\n1,1", + "3,1\n\n\n1,1", + "3,2\n\n\n1,1", + "3,3\n\n\n1,1", + { + "x": 4.25, + "w": 1.5 + }, + "3,8\n\n\n0,1", + { + "c": "#777777" + }, + "3,9\n\n\n0,1", + "3,10\n\n\n0,1", + "3,11\n\n\n0,1" + ] + ] + } +}