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.

77 lines
2.3 KiB

  1. /*
  2. Copyright 2019 Josh Johnson
  3. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation, either version 2 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. */
  14. #pragma once
  15. #include "config_common.h"
  16. /* USB Device descriptor parameter */
  17. #define VENDOR_ID 0x6A6A
  18. #define PRODUCT_ID 0x4810
  19. #define DEVICE_VER 0x0001
  20. #define MANUFACTURER Josh Johnson
  21. #define PRODUCT Hub16
  22. /* key matrix size */
  23. #define MATRIX_ROWS 5
  24. #define MATRIX_COLS 4
  25. #define MATRIX_ROW_PINS \
  26. { F0, C7, C6, B6, E6}
  27. #define MATRIX_COL_PINS \
  28. { F4, F1, D5, D3 }
  29. /* COL2ROW, ROW2COL*/
  30. #define DIODE_DIRECTION COL2ROW
  31. #define RGB_DI_PIN D1
  32. #define RGBLED_NUM 11
  33. #define RGBLIGHT_HUE_STEP 8
  34. #define RGBLIGHT_SAT_STEP 8
  35. #define RGBLIGHT_VAL_STEP 8
  36. #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
  37. #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
  38. // /*== all animations enable ==*/
  39. #define RGBLIGHT_ANIMATIONS
  40. // /*== or choose animations ==*/
  41. // #define RGBLIGHT_EFFECT_BREATHING
  42. // #define RGBLIGHT_EFFECT_RAINBOW_MOOD
  43. // #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  44. // #define RGBLIGHT_EFFECT_SNAKE
  45. // #define RGBLIGHT_EFFECT_KNIGHT
  46. // #define RGBLIGHT_EFFECT_CHRISTMAS
  47. // #define RGBLIGHT_EFFECT_STATIC_GRADIENT
  48. // #define RGBLIGHT_EFFECT_RGB_TEST
  49. // #define RGBLIGHT_EFFECT_ALTERNATING
  50. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  51. #define DEBOUNCE 20
  52. /* ENCODER THINGS */
  53. // #define ENCODER_DIRECTION_FLIP
  54. #define ENCODERS_PAD_A \
  55. { F5, B5 }
  56. #define ENCODERS_PAD_B \
  57. { F6, B4 }
  58. /* Tap Dance timing */
  59. #define TAPPING_TERM 200
  60. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  61. #define LOCKING_SUPPORT_ENABLE
  62. /* Locking resynchronize hack */
  63. #define LOCKING_RESYNC_ENABLE