config.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /* Copyright 2021 Danny Nguyen <danny@keeb.io>
  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 0xCB10
  17. #define PRODUCT_ID 0x144C
  18. #define DEVICE_VER 0x0100
  19. #define MANUFACTURER Keebio
  20. #define PRODUCT DSP40 Rev. 1
  21. /* key matrix size */
  22. #define MATRIX_ROWS 4
  23. #define MATRIX_COLS 12
  24. /* Keyboard Matrix Assignments */
  25. #define MATRIX_ROW_PINS { B9, A9, A8, B15 }
  26. #define MATRIX_COL_PINS { B10, B2, A3, A4, B7, B6, A10, C13, C14, C15, F0, F1 }
  27. #define ENCODERS_PAD_A { A1 }
  28. #define ENCODERS_PAD_B { A2 }
  29. #define TAP_CODE_DELAY 10
  30. #define DIODE_DIRECTION COL2ROW
  31. #define BACKLIGHT_PIN A6
  32. #define BACKLIGHT_PWM_DRIVER PWMD3
  33. #define BACKLIGHT_PWM_CHANNEL 1
  34. #define BACKLIGHT_PAL_MODE 1
  35. // #define BACKLIGHT_BREATHING
  36. #define BACKLIGHT_LEVELS 7
  37. #define RGB_DI_PIN D3
  38. #ifdef RGB_DI_PIN
  39. #define RGBLED_NUM 4
  40. #define RGBLIGHT_HUE_STEP 8
  41. #define RGBLIGHT_SAT_STEP 8
  42. #define RGBLIGHT_VAL_STEP 8
  43. #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
  44. #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
  45. /*== all animations enable ==*/
  46. #define RGBLIGHT_ANIMATIONS
  47. #endif
  48. /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
  49. #define DEBOUNCE 5
  50. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  51. #define LOCKING_SUPPORT_ENABLE
  52. /* Locking resynchronize hack */
  53. #define LOCKING_RESYNC_ENABLE