From ac3f6d5eee86b4bb3f7edbbf1ae4890df4cfad94 Mon Sep 17 00:00:00 2001 From: Ed Griebel Date: Sun, 28 Jan 2024 20:36:21 -0500 Subject: [PATCH] flehrad/bigswitch: adding Vial port, expand flash documentation (#649) * blehrad/bigswitch: adding Vial port, expand flash docu * flehrad/bigswitch: default to SECURE mode * typo * Apply suggestions from code review single key as an unlock combo Co-authored-by: Less/Rikki <86894501+lesshonor@users.noreply.github.com> * remove redundant setup info --------- Co-authored-by: Less/Rikki <86894501+lesshonor@users.noreply.github.com> --- .../flehrad/bigswitch/keymaps/vial/config.h | 11 ++++++++ .../flehrad/bigswitch/keymaps/vial/keymap.c | 26 +++++++++++++++++++ .../flehrad/bigswitch/keymaps/vial/rules.mk | 11 ++++++++ .../flehrad/bigswitch/keymaps/vial/vial.json | 21 +++++++++++++++ 4 files changed, 69 insertions(+) create mode 100644 keyboards/flehrad/bigswitch/keymaps/vial/config.h create mode 100644 keyboards/flehrad/bigswitch/keymaps/vial/keymap.c create mode 100644 keyboards/flehrad/bigswitch/keymaps/vial/rules.mk create mode 100644 keyboards/flehrad/bigswitch/keymaps/vial/vial.json diff --git a/keyboards/flehrad/bigswitch/keymaps/vial/config.h b/keyboards/flehrad/bigswitch/keymaps/vial/config.h new file mode 100644 index 0000000000..95e42cf006 --- /dev/null +++ b/keyboards/flehrad/bigswitch/keymaps/vial/config.h @@ -0,0 +1,11 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#pragma once + +#define VIAL_KEYBOARD_UID {0x6D, 0x2C, 0x7B, 0xB2, 0xEA, 0xD4, 0xCB, 0x5A} + +/* no sense having layers with a single key */ +#define DYNAMIC_KEYMAP_LAYER_COUNT 1 + +#define VIAL_UNLOCK_COMBO_ROWS { 0 } +#define VIAL_UNLOCK_COMBO_COLS { 0 } diff --git a/keyboards/flehrad/bigswitch/keymaps/vial/keymap.c b/keyboards/flehrad/bigswitch/keymaps/vial/keymap.c new file mode 100644 index 0000000000..2965891f54 --- /dev/null +++ b/keyboards/flehrad/bigswitch/keymaps/vial/keymap.c @@ -0,0 +1,26 @@ +/* +Copyright 2018 QMK Contributors + +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 +#define LOCK_OSX LSFT(LCTL(KC_KB_POWER)) +#define SLEEP_OSX LALT(LGUI(KC_KB_POWER)) + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + +LAYOUT(SLEEP_OSX), + +}; diff --git a/keyboards/flehrad/bigswitch/keymaps/vial/rules.mk b/keyboards/flehrad/bigswitch/keymaps/vial/rules.mk new file mode 100644 index 0000000000..9826a9cd57 --- /dev/null +++ b/keyboards/flehrad/bigswitch/keymaps/vial/rules.mk @@ -0,0 +1,11 @@ +VIA_ENABLE = yes +VIAL_ENABLE = yes + +# These options reduce firmware size to something flashable +# tap-dance, combos, and key overrides don't make sense with a single button +TAP_DANCE_ENABLE = no +COMBO_ENABLE = no +KEY_OVERRIDE_ENABLE = no + +# reduces firmware size from 95% to 80% +LTO_ENABLE = yes diff --git a/keyboards/flehrad/bigswitch/keymaps/vial/vial.json b/keyboards/flehrad/bigswitch/keymaps/vial/vial.json new file mode 100644 index 0000000000..f335b5a797 --- /dev/null +++ b/keyboards/flehrad/bigswitch/keymaps/vial/vial.json @@ -0,0 +1,21 @@ +{ + "name": "Big Switch", + "vendorId": "0x1209", + "productId": "0xB195", + "lighting": "qmk_rgblight", + "matrix": { + "rows": 1, + "cols": 1 + }, + "layouts": { + "keymap": [ + [ + { + "w": 4, + "h": 4 + }, + "0,0" + ] + ] + } +}