diff --git a/keyboards/ploopyco/mouse/keymaps/vial/config.h b/keyboards/ploopyco/mouse/keymaps/vial/config.h new file mode 100644 index 0000000000..5f3daa6a01 --- /dev/null +++ b/keyboards/ploopyco/mouse/keymaps/vial/config.h @@ -0,0 +1,50 @@ +/* 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 + +// These pins are not broken out, and cannot be used normally. +// They are set as output and pulled high, by default +#define UNUSABLE_PINS \ + { B4, D6, F1, F5, F6, F7 } + +/* disable action features */ +//#define NO_ACTION_LAYER +//#define NO_ACTION_TAPPING +//#define NO_ACTION_ONESHOT + +// #define DEBUG_LED_PIN F7 + +/* PMW33XX Settings */ +#define PMW33XX_CS_PIN B0 + +#define ENCODER_BUTTON_COL 1 +#define ENCODER_BUTTON_ROW 0 +/* Custom encoder needs to specify just how many encoders we have */ +#define NUM_ENCODERS 1 + +#define ENCODER_A_PINS { F0 } +#define ENCODER_B_PINS { F4 } + +#define PLOOPY_DPI_OPTIONS { 800, 1200, 1600, 2400 } +#define PLOOPY_DPI_DEFAULT 0 + +#define VIAL_KEYBOARD_UID {0x84, 0x1C, 0x34, 0x08, 0xC9, 0xC5, 0xB4, 0x37} + +#define VIAL_UNLOCK_COMBO_ROWS {0, 0} +#define VIAL_UNLOCK_COMBO_COLS {4, 5} diff --git a/keyboards/ploopyco/mouse/keymaps/vial/keymap.c b/keyboards/ploopyco/mouse/keymaps/vial/keymap.c new file mode 100644 index 0000000000..29d81b8061 --- /dev/null +++ b/keyboards/ploopyco/mouse/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/keymaps/vial/rules.mk b/keyboards/ploopyco/mouse/keymaps/vial/rules.mk new file mode 100644 index 0000000000..b9509645d8 --- /dev/null +++ b/keyboards/ploopyco/mouse/keymaps/vial/rules.mk @@ -0,0 +1,16 @@ +# Processor frequency +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/keymaps/vial/vial.json new file mode 100644 index 0000000000..3d58fee81e --- /dev/null +++ b/keyboards/ploopyco/mouse/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" + ] + ] + } +}