config.h 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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 0x4D6F
  23. #define DEVICE_VER 0x0001
  24. #define MANUFACTURER PloopyCo
  25. #define PRODUCT Mouse
  26. /* key matrix size */
  27. #define MATRIX_ROWS 1
  28. #define MATRIX_COLS 8
  29. /*
  30. * Keyboard Matrix Assignments
  31. *
  32. * Change this to how you wired your keyboard
  33. * COLS: AVR pins used for columns, left to right
  34. * ROWS: AVR pins used for rows, top to bottom
  35. * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
  36. * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
  37. *
  38. */
  39. #define DIRECT_PINS \
  40. { \
  41. { D4, D2, E6, B6, D7, C6, C7, B7 } \
  42. }
  43. // These pins are not broken out, and cannot be used normally.
  44. // They are set as output and pulled high, by default
  45. #define UNUSED_PINS \
  46. { B4, D6, F1, F5, F6, F7 }
  47. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  48. #define DEBOUNCE 5
  49. /* Much more so than a keyboard, speed matters for a mouse. So we'll go for as high
  50. a polling rate as possible. */
  51. #define USB_POLLING_INTERVAL_MS 1
  52. #define USB_MAX_POWER_CONSUMPTION 100
  53. /* define if matrix has ghost (lacks anti-ghosting diodes) */
  54. //#define MATRIX_HAS_GHOST
  55. /* disable action features */
  56. //#define NO_ACTION_LAYER
  57. //#define NO_ACTION_TAPPING
  58. //#define NO_ACTION_ONESHOT
  59. #define NO_ACTION_MACRO
  60. #define NO_ACTION_FUNCTION
  61. /* Bootmagic Lite key configuration */
  62. #define BOOTMAGIC_LITE_ROW 0
  63. #define BOOTMAGIC_LITE_COLUMN 3
  64. #define RGB_DI_PIN B5
  65. #define RGBLED_NUM 4
  66. #define RGBLIGHT_LIMIT_VAL 40
  67. #define RGBLIGHT_EFFECT_BREATHING
  68. #define RGBLIGHT_EFFECT_RAINBOW_MOOD
  69. #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  70. // #define DEBUG_LED_PIN F7