config.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /**
  2. * config.h
  3. *
  4. Copyright 2020 astro <yuleiz@gmail.com>
  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 0x694E //'iN'
  20. #define PRODUCT_ID 0x5336 //'S6'
  21. #define DEVICE_VER 0x0001
  22. #define MANUFACTURER iNETT Studio
  23. #define PRODUCT SQUARE.X
  24. /* key matrix size */
  25. #define MATRIX_ROWS 5
  26. #define MATRIX_COLS 14
  27. #define MATRIX_ROW_PINS { F0, F1, F4, B7, D6}
  28. #define MATRIX_COL_PINS { C7, C6, B6, B5, B4, F7, F6, F5, E6, B0, D2, D4, D5, D3 }
  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 RGBLIGHT_LIMIT_VAL 128
  43. #define RGBLED_NUM 18
  44. #define RGB_DI_PIN D7
  45. #define RGBLIGHT_ANIMATIONS
  46. #define RGBLIGHT_HUE_STEP 8
  47. #define RGBLIGHT_SAT_STEP 8
  48. #define RGBLIGHT_VAL_STEP 8
  49. //rgb matrix setting
  50. #define DRIVER_1_LED_TOTAL 36
  51. #define DRIVER_2_LED_TOTAL 36
  52. #define DRIVER_ADDR_1 0b1110100
  53. #define DRIVER_ADDR_2 0b1110111
  54. #define DRIVER_COUNT 2
  55. #define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)
  56. #if defined(RGB_MATRIX_ENABLE) && defined(RGBLIGHT_ENABLE)
  57. # define RGB_MATRIX_DISABLE_KEYCODES
  58. #endif
  59. #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 170
  60. #define DISABLE_RGB_MATRIX_BAND_VAL
  61. #define DISABLE_RGB_MATRIX_BAND_SPIRAL_VAL
  62. #define DISABLE_RGB_MATRIX_BAND_PINWHEEL_VAL