From bf08cb969de4ac5cae437c48e69622c3eb4cd139 Mon Sep 17 00:00:00 2001 From: DonutCables Date: Sun, 30 Apr 2023 19:24:31 -0400 Subject: [PATCH] Update and add Budget96 support (#450) * Add Vial-enabled default map to budget96 * Update rules.mk via suggestion Co-authored-by: Less/Rikki <86894501+lesshonor@users.noreply.github.com> * Suggestions to keymap.c Co-authored-by: Less/Rikki <86894501+lesshonor@users.noreply.github.com> --------- Co-authored-by: Less/Rikki <86894501+lesshonor@users.noreply.github.com> --- .../budget96/keymaps/vial/config.h | 14 + .../budget96/keymaps/vial/keymap.c | 45 +++ .../budget96/keymaps/vial/readme.md | 1 + .../budget96/keymaps/vial/rules.mk | 18 + .../budget96/keymaps/vial/vial.json | 317 ++++++++++++++++++ 5 files changed, 395 insertions(+) create mode 100644 keyboards/donutcables/budget96/keymaps/vial/config.h create mode 100644 keyboards/donutcables/budget96/keymaps/vial/keymap.c create mode 100644 keyboards/donutcables/budget96/keymaps/vial/readme.md create mode 100644 keyboards/donutcables/budget96/keymaps/vial/rules.mk create mode 100644 keyboards/donutcables/budget96/keymaps/vial/vial.json diff --git a/keyboards/donutcables/budget96/keymaps/vial/config.h b/keyboards/donutcables/budget96/keymaps/vial/config.h new file mode 100644 index 000000000000..4f99c69ff46c --- /dev/null +++ b/keyboards/donutcables/budget96/keymaps/vial/config.h @@ -0,0 +1,14 @@ +/* SPDX-Licanse-Identifier: GPL-2.0-or-later */ + +#pragma once + +#define VIAL_KEYBOARD_UID {0x2F, 0xE9, 0x9C, 0x35, 0xA0, 0x07, 0xEA, 0x2B} +#define VIAL_UNLOCK_COMBO_ROWS { 0,3 } +#define VIAL_UNLOCK_COMBO_COLS { 6,2 } +#define DYNAMIC_KEYMAP_LAYER_COUNT 3 +#undef LOCKING_SUPPORT_ENABLE +#undef LOCKING_RESYNC_ENABLE +#define NO_ACTION_ONESHOT +#define LAYER_STATE_8BIT + + diff --git a/keyboards/donutcables/budget96/keymaps/vial/keymap.c b/keyboards/donutcables/budget96/keymaps/vial/keymap.c new file mode 100644 index 000000000000..e9d28a8bc84c --- /dev/null +++ b/keyboards/donutcables/budget96/keymaps/vial/keymap.c @@ -0,0 +1,45 @@ +/* Copyright 2021 MechMerlin + * + * 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 + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { +[0] = LAYOUT_96_ansi( + KC_ESC, 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_PSCR, KC_NUM, KC_INS, KC_HOME, KC_PGUP, KC_PSLS, + KC_GRV, 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_BSPC, KC_END, KC_PGDN, KC_PSLS, KC_PAST, + 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_BSLS, KC_P7, KC_P8, KC_P9, KC_PMNS, + KC_CAPS, 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_P4, KC_P5, KC_P6, KC_PPLS, + KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_P1, KC_P2, KC_P3, + KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RIGHT, KC_P0, KC_PDOT, KC_PENT), + +[1] = LAYOUT_96_ansi( + QK_BOOT, EE_CLR, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + RGB_TOG, RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, RGB_SPI, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, RGB_RMOD, RGB_HUD, RGB_SAD, RGB_VAD, RGB_SPD, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), + +[2] = LAYOUT_96_ansi( + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, + KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), +}; + + + diff --git a/keyboards/donutcables/budget96/keymaps/vial/readme.md b/keyboards/donutcables/budget96/keymaps/vial/readme.md new file mode 100644 index 000000000000..78e8e89b1c2c --- /dev/null +++ b/keyboards/donutcables/budget96/keymaps/vial/readme.md @@ -0,0 +1 @@ +# Vial-enabled default keymap for budget96 diff --git a/keyboards/donutcables/budget96/keymaps/vial/rules.mk b/keyboards/donutcables/budget96/keymaps/vial/rules.mk new file mode 100644 index 000000000000..6b19afe8a803 --- /dev/null +++ b/keyboards/donutcables/budget96/keymaps/vial/rules.mk @@ -0,0 +1,18 @@ +VIA_ENABLE = yes +VIAL_ENABLE = yes +LTO_ENABLE = yes +QMK_SETTINGS = no + +MAGIC_ENABLE = no +MOUSEKEY_ENABLE = no +CONSOLE_ENABLE = no +COMMAND_ENABLE = no +COMBO_ENABLE = no +NKRO_ENABLE = no +KEY_OVERRIDE_ENABLE = no +VIRTSER_ENABLE = no + +TAP_DANCE_ENABLE = no +SPACE_CADET_ENABLE = no +GRAVE_ESC_ENABLE = no +BACKLIGHT_ENABLE = no diff --git a/keyboards/donutcables/budget96/keymaps/vial/vial.json b/keyboards/donutcables/budget96/keymaps/vial/vial.json new file mode 100644 index 000000000000..5c9ec5817ba2 --- /dev/null +++ b/keyboards/donutcables/budget96/keymaps/vial/vial.json @@ -0,0 +1,317 @@ +{ + "lighting": "none", + "matrix":{ + "rows":8, + "cols":15 + }, + "layouts":{ + "labels":[ + "Split Backspace", + "ISO Enter", + "Split LShift", + "Split RShift", + [ + "Bottom Row", + "Default", + "All" + ], + "Split Numpad +", + "Split Numpad Enter", + "Split Numpad 0" + ], + "keymap":[ + + [ + { + "x": 2.5 + }, + "5,0", + "5,2", + "5,3", + "5,4", + "5,5", + "6,0", + "6,10", + "7,10", + "7,0", + "5,11", + "5,12", + "5,13", + "5,14", + "1,13", + "2,14", + "0,13", + "7,6", + "7,8", + "7,9" + ], + [ + { + "x": 2.5 + }, + "4,0", + "4,1", + "4,2", + "4,3", + "4,4", + "4,5", + "6,1", + "6,11", + "7,11", + "7,1", + "4,10", + "4,11", + "4,12", + { + "c": "#00773a", + "w": 2 + }, + "4,13\n\n\n0,0", + { + "c": "#cccccc" + }, + "4,6", + "4,7", + "4,8", + "4,9", + { + "x": 2.25, + "c": "#00773a" + }, + "4,13\n\n\n0,1", + "4,14\n\n\n0,1" + ], + [ + { + "x": 2.5, + "c": "#cccccc", + "w": 1.5 + }, + "3,0", + "3,1", + "3,2", + "3,3", + "3,4", + "3,5", + "6,2", + "6,12", + "7,12", + "7,2", + "3,10", + "3,11", + "3,12", + { + "c": "#5d437e", + "w": 1.5 + }, + "3,13\n\n\n1,0", + { + "c": "#cccccc" + }, + "3,6", + "3,7", + "3,8", + { + "c": "#00589f", + "h": 2 + }, + "3,9\n\n\n5,0", + { + "x": 0.25 + }, + "3,9\n\n\n5,1", + { + "x": 1.75, + "c": "#5d437e", + "w": 1.25, + "h": 2, + "w2": 1.5, + "h2": 1, + "x2": -0.25 + }, + "2,13\n\n\n1,1" + ], + [ + { + "x": 2.5, + "c": "#67635b", + "w": 1.25, + "w2": 1.75, + "l": true + }, + "2,0", + { + "x": 0.5, + "c": "#cccccc" + }, + "2,1", + "2,2", + "2,3", + "2,4", + "2,5", + "6,3", + "6,13", + "7,13", + "7,3", + "2,10", + "2,11", + { + "c": "#5d437e", + "w": 2.25 + }, + "2,12\n\n\n1,0", + { + "c": "#cccccc" + }, + "2,6", + "2,7", + "2,8", + { + "x": 1.25, + "c": "#00589f" + }, + "2,9\n\n\n5,1", + { + "x": 0.75, + "c": "#5d437e" + }, + "2,12\n\n\n1,1" + ], + [ + { + "c": "#cb3d6e", + "w": 1.25 + }, + "1,0\n\n\n2,1", + "0,3\n\n\n2,1", + { + "x": 0.25, + "w": 2.25 + }, + "1,0\n\n\n2,0", + { + "c": "#cccccc" + }, + "1,1", + "1,2", + "1,3", + "1,4", + "1,5", + "6,4", + "6,14", + "7,14", + "7,4", + "1,10", + { + "c": "#8d242f", + "w": 1.75 + }, + "1,11\n\n\n3,0", + "6,8\n\n\n3,0", + { + "c": "#cccccc" + }, + "1,6", + "1,7", + "1,8", + { + "c": "#00589f", + "h": 2 + }, + "1,9\n\n\n6,0", + { + "x": 0.25 + }, + "1,9\n\n\n6,1", + { + "x": 0.25, + "c": "#8d242f", + "w": 2.75 + }, + "1,11\n\n\n3,1" + ], + [ + { + "x": 2.5, + "c": "#ee6d00", + "w": 1.25 + }, + "0,0\n\n\n4,0", + { + "w": 1.25 + }, + "0,1\n\n\n4,0", + { + "w": 1.25 + }, + "0,2\n\n\n4,0", + { + "c": "#dd1126", + "w": 6.25 + }, + "6,5\n\n\n4,0", + { + "c": "#f8c200", + "w": 1.5 + }, + "7,5\n\n\n4,0", + { + "w": 1.5 + }, + "0,11\n\n\n4,0", + "6,6\n\n\n4,0", + "6,7\n\n\n4,0", + { + "c": "#00589f" + }, + "6,9\n\n\n7,0", + "0,6\n\n\n7,0", + { + "c": "#cccccc" + }, + "0,8", + { + "x": 1.25, + "c": "#00589f" + }, + "0,9\n\n\n6,1" + ], + [ + { + "y": 0.25, + "x": 2.5, + "c": "#ee6d00", + "w": 1.25 + }, + "0,0\n\n\n4,1", + { + "w": 1.25 + }, + "0,1\n\n\n4,1", + { + "w": 1.25 + }, + "0,2\n\n\n4,1", + { + "c": "#dd1126", + "w": 6.25 + }, + "6,5\n\n\n4,1", + { + "c": "#f8c200" + }, + "7,5\n\n\n4,1", + "0,10\n\n\n4,1", + "0,11\n\n\n4,1", + "6,6\n\n\n4,1", + "6,7\n\n\n4,1", + { + "c": "#00589f", + "w": 2 + }, + "0,6\n\n\n7,1" + ] +] + + } +} \ No newline at end of file