config.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. /* USB Device descriptor parameter */
  15. #define VENDOR_ID 0xCB10
  16. #define PRODUCT_ID 0x1258
  17. #define DEVICE_VER 0x0100
  18. #define MANUFACTURER Keebio
  19. #define PRODUCT FoldKB Rev. 1
  20. /* key matrix size */
  21. // Rows are doubled-up
  22. #define MATRIX_ROWS 10
  23. #define MATRIX_COLS 8
  24. #define DIODE_DIRECTION COL2ROW
  25. // wiring of each half
  26. #define MATRIX_ROW_PINS { B1, B2, C7, B4, D7 }
  27. #define MATRIX_COL_PINS { F4, F1, F0, B7, B3, D2, D3, D5 }
  28. #define SPLIT_HAND_PIN F7
  29. #define ENCODERS_PAD_A { F5 }
  30. #define ENCODERS_PAD_B { F6 }
  31. /* Set 0 if debouncing isn't needed */
  32. #define DEBOUNCE 5
  33. #define BACKLIGHT_PIN B5
  34. /* serial.c configuration for split keyboard */
  35. #define SOFT_SERIAL_PIN D0
  36. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  37. #define LOCKING_SUPPORT_ENABLE
  38. /* Locking resynchronize hack */
  39. #define LOCKING_RESYNC_ENABLE
  40. /* ws2812 RGB LED */
  41. #define RGB_DI_PIN E6
  42. #define RGBLIGHT_ANIMATIONS
  43. #define RGBLED_NUM 16 // Number of LEDs
  44. #define RGBLED_SPLIT { 8, 8 }
  45. #define RGBLIGHT_LED_MAP { 0, 1, 2, 3, 12, 13, 14, 15, 4, 5, 6, 7, 8, 9, 10, 11 }
  46. #define RGBLIGHT_DEFAULT_MODE (RGBLIGHT_MODE_RAINBOW_SWIRL + 2)