From ee6b9db3e15890f809e3a1c63fff56a3a93a030e Mon Sep 17 00:00:00 2001 From: Shadow Date: Mon, 9 Jun 2025 07:31:33 +0000 Subject: [PATCH] unlock all features for new rp2040 version of ploopy mouse (#894) * remove keyboard revision wide feature locks to let rev1_003 use its full feature set * add feature removals to let keyboard compile small enough to fit * change folder structure and add new keyboard id fixes vial feature set for old and new ploopy mouse. this is achieved by moving the keymaps folder into the respective folders. also change the keyboard id for the new revision. * remove commented out lines * remove added newline * remove all comments --- .../{ => rev1_002}/keymaps/vial/config.h | 0 .../{ => rev1_002}/keymaps/vial/keymap.c | 0 .../{ => rev1_002}/keymaps/vial/rules.mk | 4 -- .../{ => rev1_002}/keymaps/vial/vial.json | 0 .../mouse/rev1_003/keymaps/vial/config.h | 27 ++++++++ .../mouse/rev1_003/keymaps/vial/keymap.c | 23 +++++++ .../mouse/rev1_003/keymaps/vial/rules.mk | 7 ++ .../mouse/rev1_003/keymaps/vial/vial.json | 67 +++++++++++++++++++ 8 files changed, 124 insertions(+), 4 deletions(-) rename keyboards/ploopyco/mouse/{ => rev1_002}/keymaps/vial/config.h (100%) rename keyboards/ploopyco/mouse/{ => rev1_002}/keymaps/vial/keymap.c (100%) rename keyboards/ploopyco/mouse/{ => rev1_002}/keymaps/vial/rules.mk (80%) rename keyboards/ploopyco/mouse/{ => rev1_002}/keymaps/vial/vial.json (100%) create mode 100644 keyboards/ploopyco/mouse/rev1_003/keymaps/vial/config.h create mode 100644 keyboards/ploopyco/mouse/rev1_003/keymaps/vial/keymap.c create mode 100644 keyboards/ploopyco/mouse/rev1_003/keymaps/vial/rules.mk create mode 100644 keyboards/ploopyco/mouse/rev1_003/keymaps/vial/vial.json diff --git a/keyboards/ploopyco/mouse/keymaps/vial/config.h b/keyboards/ploopyco/mouse/rev1_002/keymaps/vial/config.h similarity index 100% rename from keyboards/ploopyco/mouse/keymaps/vial/config.h rename to keyboards/ploopyco/mouse/rev1_002/keymaps/vial/config.h diff --git a/keyboards/ploopyco/mouse/keymaps/vial/keymap.c b/keyboards/ploopyco/mouse/rev1_002/keymaps/vial/keymap.c similarity index 100% rename from keyboards/ploopyco/mouse/keymaps/vial/keymap.c rename to keyboards/ploopyco/mouse/rev1_002/keymaps/vial/keymap.c diff --git a/keyboards/ploopyco/mouse/keymaps/vial/rules.mk b/keyboards/ploopyco/mouse/rev1_002/keymaps/vial/rules.mk similarity index 80% rename from keyboards/ploopyco/mouse/keymaps/vial/rules.mk rename to keyboards/ploopyco/mouse/rev1_002/keymaps/vial/rules.mk index b9509645d8..4c126c0ba1 100644 --- a/keyboards/ploopyco/mouse/keymaps/vial/rules.mk +++ b/keyboards/ploopyco/mouse/rev1_002/keymaps/vial/rules.mk @@ -3,14 +3,10 @@ F_CPU = 8000000 POINTING_DEVICE_DRIVER = pmw3360 -# add vial config VIA_ENABLE = yes VIAL_ENABLE = yes TAP_DANCE_ENABLE = no KEY_OVERRIDE_ENABLE = no - LTO_ENABLE = yes - -# VIAL_INSECURE = yes diff --git a/keyboards/ploopyco/mouse/keymaps/vial/vial.json b/keyboards/ploopyco/mouse/rev1_002/keymaps/vial/vial.json similarity index 100% rename from keyboards/ploopyco/mouse/keymaps/vial/vial.json rename to keyboards/ploopyco/mouse/rev1_002/keymaps/vial/vial.json diff --git a/keyboards/ploopyco/mouse/rev1_003/keymaps/vial/config.h b/keyboards/ploopyco/mouse/rev1_003/keymaps/vial/config.h new file mode 100644 index 0000000000..1478d57687 --- /dev/null +++ b/keyboards/ploopyco/mouse/rev1_003/keymaps/vial/config.h @@ -0,0 +1,27 @@ +/* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) + * Copyright 2019 Sunjun Kim + * Copyright 2020 Ploopy Corporation + * + * 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 . + */ + +#pragma once + +#define PLOOPY_DPI_OPTIONS { 800, 1200, 1600, 2400 } +#define PLOOPY_DPI_DEFAULT 0 + +#define VIAL_KEYBOARD_UID {0x78, 0x87, 0x0E, 0x2A, 0x8C, 0xB2, 0xB4, 0x7A} + +#define VIAL_UNLOCK_COMBO_ROWS {0, 0} +#define VIAL_UNLOCK_COMBO_COLS {4, 5} diff --git a/keyboards/ploopyco/mouse/rev1_003/keymaps/vial/keymap.c b/keyboards/ploopyco/mouse/rev1_003/keymaps/vial/keymap.c new file mode 100644 index 0000000000..29d81b8061 --- /dev/null +++ b/keyboards/ploopyco/mouse/rev1_003/keymaps/vial/keymap.c @@ -0,0 +1,23 @@ +/* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) + * Copyright 2019 Sunjun Kim + * Copyright 2020 Ploopy Corporation + * + * 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(/* Base */ + C(KC_C), KC_BTN1, KC_BTN3, KC_BTN2, C(KC_V), KC_BTN4, KC_BTN5, DPI_CONFIG) +}; diff --git a/keyboards/ploopyco/mouse/rev1_003/keymaps/vial/rules.mk b/keyboards/ploopyco/mouse/rev1_003/keymaps/vial/rules.mk new file mode 100644 index 0000000000..008639f0c3 --- /dev/null +++ b/keyboards/ploopyco/mouse/rev1_003/keymaps/vial/rules.mk @@ -0,0 +1,7 @@ +# Processor frequency +F_CPU = 8000000 + +POINTING_DEVICE_DRIVER = pmw3360 + +VIA_ENABLE = yes +VIAL_ENABLE = yes diff --git a/keyboards/ploopyco/mouse/rev1_003/keymaps/vial/vial.json b/keyboards/ploopyco/mouse/rev1_003/keymaps/vial/vial.json new file mode 100644 index 0000000000..3d58fee81e --- /dev/null +++ b/keyboards/ploopyco/mouse/rev1_003/keymaps/vial/vial.json @@ -0,0 +1,67 @@ +{ + "name": "PloopyCo Mouse", + "vendorId": "0x5043", + "productId": "0x4D6F", + "matrix": { + "rows": 1, + "cols": 8 + }, + "customKeycodes": [ + { + "name": "DPI Config", + "title": "DPI Config: Cycles through the DPI settings", + "shortName": "DPI" + }, + { + "name": "Drag Scroll", + "title": "Drag Scroll: Enables you to scroll instead of moving the cursor", + "shortName": "DragScl" + } + ], + "lighting": "none", + "layouts": { + "keymap": [ + [ + "0,4", + { + "h": 2 + }, + "0,6", + { + "h": 2 + }, + "0,0", + { + "x": 1, + "h": 2 + }, + "0,2", + { + "h": 2 + }, + "0,5" + ], + [ + { + "y": -0.75, + "x": 3, + "h": 1.25 + }, + "0,1" + ], + [ + { + "y": -0.25 + }, + "0,3" + ], + [ + { + "y": -0.5, + "x": 3 + }, + "0,7" + ] + ] + } +}