config.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /*
  2. Copyright 2015 Jun Wako <wakojun@gmail.com>
  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. /* USB Device descriptor parameter */
  16. #define VENDOR_ID 0xB16B
  17. #define PRODUCT_ID 0x00B5
  18. #define DEVICE_VER 0x0012
  19. #define MANUFACTURER Ramon Imbao
  20. #define PRODUCT Wete
  21. /* key matrix size */
  22. #define MATRIX_ROWS 6
  23. #define MATRIX_COLS 20
  24. #define MATRIX_COL_PINS { B13, B14, B15, A8, B0, A7, A5, A4, A3, B9, C13, C14, C15, F0, F1, A0, A1, A2, B8, B7 }
  25. #define MATRIX_ROW_PINS { A9, B12, B11, B10, B2, B1 }
  26. #define DIODE_DIRECTION COL2ROW
  27. //LEDS A6
  28. #define BACKLIGHT_PIN A6
  29. #define BACKLIGHT_PWM_DRIVER PWMD3
  30. #define BACKLIGHT_PWM_CHANNEL 1
  31. #define BACKLIGHT_PAL_MODE 1
  32. #define BACKLIGHT_LEVELS 24
  33. #define BACKLIGHT_BREATHING
  34. #define BREATHING_PERIOD 6
  35. // RGB B4
  36. #define RGB_DI_PIN B4
  37. #define RGBLED_NUM 24
  38. #define RGBLIGHT_ANIMATIONS
  39. #define SLEEP_LED_GPT_DRIVER GPTD1
  40. /* define if matrix has ghost */
  41. //#define MATRIX_HAS_GHOST
  42. /* Set 0 if debouncing isn't needed */
  43. #define DEBOUNCE 5
  44. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  45. #define LOCKING_SUPPORT_ENABLE
  46. /* Locking resynchronize hack */
  47. #define LOCKING_RESYNC_ENABLE
  48. /*
  49. * Feature disable options
  50. * These options are also useful to firmware size reduction.
  51. */
  52. /* disable debug print */
  53. //#define NO_DEBUG
  54. /* disable print */
  55. //#define NO_PRINT
  56. /* disable action features */
  57. //#define NO_ACTION_LAYER
  58. //#define NO_ACTION_TAPPING
  59. //#define NO_ACTION_ONESHOT
  60. //#define NO_ACTION_MACRO
  61. //#define NO_ACTION_FUNCTION