config.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. #pragma once
  20. #include "config_common.h"
  21. /* USB Device descriptor parameter */
  22. #define VENDOR_ID 0x5043
  23. #define PRODUCT_ID 0x1EAB
  24. #define DEVICE_VER 0x0001
  25. #define PRODUCT Trackball Mini
  26. /* key matrix size */
  27. #define MATRIX_ROWS 1
  28. #define MATRIX_COLS 5
  29. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  30. #define DEBOUNCE 5
  31. /* define if matrix has ghost (lacks anti-ghosting diodes) */
  32. //#define MATRIX_HAS_GHOST
  33. /* disable action features */
  34. //#define NO_ACTION_LAYER
  35. //#define NO_ACTION_TAPPING
  36. //#define NO_ACTION_ONESHOT
  37. #define NO_ACTION_MACRO
  38. #define NO_ACTION_FUNCTION
  39. /* Much more so than a keyboard, speed matters for a mouse. So we'll go for as high
  40. a polling rate as possible. */
  41. #define USB_POLLING_INTERVAL_MS 1
  42. #define USB_MAX_POWER_CONSUMPTION 100
  43. /* Bootmagic Lite key configuration */
  44. #define BOOTMAGIC_LITE_ROW 0
  45. #define BOOTMAGIC_LITE_COLUMN 3
  46. // If board has a debug LED, you can enable it by defining this
  47. // #define DEBUG_LED_PIN F7