You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
2.3 KiB

  1. /*
  2. Copyright 2012 Jun Wako <wakojun@gmail.com>
  3. Copyright 2013 Oleg Kostyuk <cub.uanic@gmail.com>
  4. Copyright 2017 Erin Call <hello@erincall.com>
  5. Copyright 2020 Marcus Young <myoung34@my.apsu.edu>
  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. 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. You should have received a copy of the GNU General Public License
  15. along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. #pragma once
  18. #include "config_common.h"
  19. /* USB Device descriptor parameter */
  20. #define VENDOR_ID 0xFEED
  21. #define PRODUCT_ID 0x1308
  22. #define DEVICE_VER 0x0002
  23. #define MANUFACTURER myoung34
  24. #define PRODUCT Pterodactyl
  25. #define DIODE_DIRECTION COL2ROW
  26. #define MATRIX_ROWS 6
  27. #define MATRIX_COLS 12
  28. #define COL_EXPANDED { true, true, true, true, true, true, false, false, false, false, false, false}
  29. #define MATRIX_ONBOARD_ROW_PINS { F7, F6, F5, F4, F1, F0 }
  30. #define MATRIX_ONBOARD_COL_PINS { 0, 0, 0, 0, 0, 0, B6, B7, D6, D2, D3, C6 }
  31. #define EXPANDER_COL_REGISTER GPIOB
  32. #define EXPANDER_ROW_REGISTER GPIOA
  33. #define MATRIX_EXPANDER_COL_PINS {0, 1, 2, 3, 4, 5}
  34. #define MATRIX_EXPANDER_ROW_PINS {0, 1, 2, 3, 4, 5}
  35. #define MOUSEKEY_INTERVAL 20
  36. #define MOUSEKEY_DELAY 0
  37. #define MOUSEKEY_TIME_TO_MAX 60
  38. #define MOUSEKEY_MAX_SPEED 7
  39. #define MOUSEKEY_WHEEL_DELAY 0
  40. #define TAPPING_TOGGLE 1
  41. #define IGNORE_MOD_TAP_INTERRUPT // this makes it possible to do rolling combos (zx) with keys that convert to other keys on hold (z becomes ctrl when you hold it, and when this option isn't enabled, z rapidly followed by x actually sends Ctrl-x. That's bad.)
  42. /* key combination for command */
  43. #define IS_COMMAND() ( \
  44. get_mods() == (MOD_BIT(KC_LCTL) | MOD_BIT(KC_RCTL)) || \
  45. get_mods() == (MOD_BIT(KC_LSFT) | MOD_BIT(KC_RSFT)) \
  46. )
  47. /* fix space cadet rollover issue */
  48. #define DISABLE_SPACE_CADET_ROLLOVER
  49. /* Set 0 if debouncing isn't needed */
  50. #define DEBOUNCE 0
  51. #define AdafruitBleResetPin D4
  52. #define AdafruitBleCSPin B4
  53. #define AdafruitBleIRQPin E6