config.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
  2. * Copyright 2019 Sunjun Kim
  3. * Copyright 2020 Ploopy Corporation
  4. *
  5. * This program is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation, either version 2 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. #pragma once
  19. #include "config_common.h"
  20. /* USB Device descriptor parameter */
  21. #define VENDOR_ID 0x5043
  22. #define PRODUCT_ID 0x5442
  23. #define DEVICE_VER 0x0001
  24. #define PRODUCT Trackball
  25. /* key matrix size */
  26. #define MATRIX_ROWS 1
  27. #define MATRIX_COLS 5
  28. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  29. #define DEBOUNCE 5
  30. /* define if matrix has ghost (lacks anti-ghosting diodes) */
  31. //#define MATRIX_HAS_GHOST
  32. /* disable action features */
  33. //#define NO_ACTION_LAYER
  34. //#define NO_ACTION_TAPPING
  35. //#define NO_ACTION_ONESHOT
  36. #define NO_ACTION_MACRO
  37. #define NO_ACTION_FUNCTION
  38. /* Much more so than a keyboard, speed matters for a mouse. So we'll go for as high
  39. a polling rate as possible. */
  40. #define USB_POLLING_INTERVAL_MS 1
  41. #define USB_MAX_POWER_CONSUMPTION 100
  42. /* Bootmagic Lite key configuration */
  43. #define BOOTMAGIC_LITE_ROW 0
  44. #define BOOTMAGIC_LITE_COLUMN 3
  45. #define ROTATIONAL_TRANSFORM_ANGLE 20
  46. // If board has a debug LED, you can enable it by defining this
  47. // #define DEBUG_LED_PIN F7