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.

67 lines
1.9 KiB

  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 0x4E65 //'Ne'
  20. #define PRODUCT_ID 0x4E36 //'N6'
  21. #define DEVICE_VER 0x0001
  22. #define MANUFACTURER Neson Design
  23. #define PRODUCT N6 Keyboard
  24. /* key matrix size */
  25. #define MATRIX_ROWS 5
  26. #define MATRIX_COLS 15
  27. #define MATRIX_ROW_PINS { F0, B1, F6, F4, F1}
  28. #define MATRIX_COL_PINS { F7, B0, E6, C7, C6, B6, B5, B4, D7, D6, D4, D5, B2, D3, D2 }
  29. #define UNUSED_PINS
  30. #define DIODE_DIRECTION COL2ROW
  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 33
  44. #define RGB_DI_PIN B3
  45. #define RGBLIGHT_ANIMATIONS
  46. #define RGBLIGHT_HUE_STEP 8
  47. #define RGBLIGHT_SAT_STEP 8
  48. #define RGBLIGHT_VAL_STEP 8
  49. #define DRIVER_1_LED_TOTAL 32
  50. #define DRIVER_ADDR_1 0b1110100
  51. #define DRIVER_COUNT 1
  52. #define DRIVER_LED_TOTAL (DRIVER_1_LED_TOTAL)
  53. #define CAPS_PIN F5