diff options
Diffstat (limited to 'keyboards/ploopyco/trackball_nano/config.h')
| -rw-r--r-- | keyboards/ploopyco/trackball_nano/config.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/keyboards/ploopyco/trackball_nano/config.h b/keyboards/ploopyco/trackball_nano/config.h new file mode 100644 index 000000000..54fe840ce --- /dev/null +++ b/keyboards/ploopyco/trackball_nano/config.h | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | /* Copyright 2021 Colin Lam (Ploopy Corporation) | ||
| 2 | * Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com> | ||
| 3 | * Copyright 2019 Sunjun Kim | ||
| 4 | * Copyright 2019 Hiroyuki Okada | ||
| 5 | * | ||
| 6 | * This program is free software: you can redistribute it and/or modify | ||
| 7 | * it under the terms of the GNU General Public License as published by | ||
| 8 | * the Free Software Foundation, either version 2 of the License, or | ||
| 9 | * (at your option) any later version. | ||
| 10 | * | ||
| 11 | * This program is distributed in the hope that it will be useful, | ||
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | * GNU General Public License for more details. | ||
| 15 | * | ||
| 16 | * You should have received a copy of the GNU General Public License | ||
| 17 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| 18 | */ | ||
| 19 | |||
| 20 | #pragma once | ||
| 21 | |||
| 22 | #include "config_common.h" | ||
| 23 | |||
| 24 | /* USB Device descriptor parameter */ | ||
| 25 | #define VENDOR_ID 0x5043 | ||
| 26 | #define PRODUCT_ID 0x1EAB | ||
| 27 | #define DEVICE_VER 0x0001 | ||
| 28 | #define MANUFACTURER PloopyCo | ||
| 29 | #define PRODUCT Trackball Nano | ||
| 30 | |||
| 31 | /* key matrix size */ | ||
| 32 | #define MATRIX_ROWS 1 | ||
| 33 | #define MATRIX_COLS 1 | ||
| 34 | |||
| 35 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 36 | #define DEBOUNCE 0 | ||
| 37 | |||
| 38 | /* disable action features */ | ||
| 39 | //#define NO_ACTION_LAYER | ||
| 40 | //#define NO_ACTION_TAPPING | ||
| 41 | //#define NO_ACTION_ONESHOT | ||
| 42 | #define NO_ACTION_MACRO | ||
| 43 | #define NO_ACTION_FUNCTION | ||
| 44 | |||
| 45 | /* Much more so than a keyboard, speed matters for a mouse. So we'll go for as high | ||
| 46 | a polling rate as possible. */ | ||
| 47 | #define USB_POLLING_INTERVAL_MS 1 | ||
| 48 | #define USB_MAX_POWER_CONSUMPTION 100 | ||
