config.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /* Copyright 2020 Muhammad Galib (polycarbdiet) <pd.keyboards@gmail.com>
  2. This program is free software: you can redistribute it and/or modify
  3. it under the terms of the GNU General Public License as published by
  4. the Free Software Foundation, either version 2 of the License, or
  5. (at your option) any later version.
  6. This program is distributed in the hope that it will be useful,
  7. but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  9. GNU General Public License for more details.
  10. You should have received a copy of the GNU General Public License
  11. along with this program. If not, see <http://www.gnu.org/licenses/>.
  12. */
  13. #pragma once
  14. #include "config_common.h"
  15. /* USB Device descriptor parameter */
  16. #define VENDOR_ID 0x5040 // PD = polycarbdiet
  17. #define PRODUCT_ID 0x7320 // S20
  18. #define DEVICE_VER 0x0001
  19. #define MANUFACTURER polycarbdiet
  20. #define PRODUCT S20
  21. /* key matrix size */
  22. #define MATRIX_ROWS 5
  23. #define MATRIX_COLS 4
  24. // 1 2 3 4 5
  25. #define MATRIX_ROW_PINS { B7, E6, D0, D1, D5 }
  26. #define MATRIX_COL_PINS { C6, C7, D4, D6 }
  27. #define UNUSED_PINS
  28. /* COL2ROW, ROW2COL */
  29. #define DIODE_DIRECTION ROW2COL
  30. #define BACKLIGHT_PIN B6
  31. #define BACKLIGHT_LEVELS 3
  32. #define BACKLIGHT_BREATHING
  33. #define RGB_DI_PIN B3
  34. #define RGBLED_NUM 4
  35. #define RGBLIGHT_HUE_STEP 8
  36. #define RGBLIGHT_SAT_STEP 8
  37. #define RGBLIGHT_VAL_STEP 8
  38. #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
  39. #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
  40. #define RGBLIGHT_ANIMATIONS
  41. #define DEBOUNCE 5
  42. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  43. #define LOCKING_SUPPORT_ENABLE
  44. /* Locking resynchronize hack */
  45. #define LOCKING_RESYNC_ENABLE
  46. #define FORCE_NKRO