config.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /**
  2. * config.h
  3. *
  4. * Copyright 2021 astro
  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. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #pragma once
  17. #include "config_common.h"
  18. /* USB Device descriptor parameter */
  19. #define VENDOR_ID 0x4D58
  20. #define PRODUCT_ID 0x474E
  21. #define DEVICE_VER 0x0001
  22. #define MANUFACTURER Matrix Lab
  23. #define PRODUCT Falcon
  24. /* key matrix size */
  25. #define MATRIX_ROWS 5
  26. #define MATRIX_COLS 13
  27. #define MATRIX_ROW_PINS { F1, B7, F7, F5, F4}
  28. #define MATRIX_COL_PINS { F6, B3, B2, B1, B0, C7, C6, B6, B5, B4, D7, D6, D4}
  29. #define UNUSED_PINS
  30. #define DIODE_DIRECTION ROW2COL
  31. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  32. #define DEBOUNCE 5
  33. /*
  34. * Feature disable options
  35. * These options are also useful to firmware size reduction.
  36. */
  37. /* disable debug print */
  38. //#define NO_DEBUG
  39. /* disable print */
  40. //#define NO_PRINT
  41. //rgb light setting
  42. #define RGBLED_NUM 4
  43. #define RGB_DI_PIN D1
  44. #define RGBLIGHT_EFFECT_BREATHING
  45. #define RGBLIGHT_EFFECT_RAINBOW_MOOD
  46. #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
  47. #define RGBLIGHT_EFFECT_SNAKE
  48. #define RGBLIGHT_EFFECT_KNIGHT
  49. #define RGBLIGHT_EFFECT_CHRISTMAS
  50. #define RGBLIGHT_EFFECT_STATIC_GRADIENT
  51. #define RGBLIGHT_EFFECT_RGB_TEST
  52. #define RGBLIGHT_EFFECT_ALTERNATING
  53. #define RGBLIGHT_EFFECT_TWINKLE
  54. #define RGBLIGHT_HUE_STEP 8
  55. #define RGBLIGHT_SAT_STEP 8
  56. #define RGBLIGHT_VAL_STEP 8
  57. //pin setting
  58. #define LED_CAPS_LOCK_PIN E2
  59. #define LED_POWER_PIN D5
  60. #define CHG_EN_PIN E6
  61. #define BATTERY_LEVEL_PIN F0