config.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /* Copyright 2020 Harrison Chan (Xelus)
  2. *
  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. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  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. /* USB Device descriptor parameter */
  18. #define VENDOR_ID 0x5845 // XE
  19. #define PRODUCT_ID 0x524F // RO
  20. #define DEVICE_VER 0x0001
  21. #define MANUFACTURER Xelus
  22. #define PRODUCT Kangaroo
  23. /* key matrix size */
  24. #define MATRIX_ROWS 12
  25. #define MATRIX_COLS 11
  26. #define MATRIX_COL_PINS { B10, B2, B11, A10, B7, B6, B5, B4, B3, A15, A14 }
  27. #define MATRIX_ROW_PINS { A9, A8, B15, B14, B13, B12, A4, A5, A6, A7, B0, B1 }
  28. #define DIODE_DIRECTION COL2ROW
  29. /* define if matrix has ghost */
  30. //#define MATRIX_HAS_GHOST
  31. /* Set 0 if debouncing isn't needed */
  32. #define DEBOUNCE 5
  33. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  34. #define LOCKING_SUPPORT_ENABLE
  35. /* Locking resynchronize hack */
  36. #define LOCKING_RESYNC_ENABLE
  37. // I2C OLED defines
  38. #define I2C1_SCL 8
  39. #define I2C1_SDA 9
  40. #define I2C1_SCL_PAL_MODE 1
  41. #define I2C1_SDA_PAL_MODE 1
  42. #define I2C1_TIMINGR_SCLDEL 3U
  43. #define I2C1_TIMINGR_SDADEL 1U
  44. #define I2C1_TIMINGR_SCLH 3U
  45. #define I2C1_TIMINGR_SCLL 9U
  46. // I2C EEPROM
  47. #define EEPROM_I2C_CAT24C512
  48. // Dynamic EEPROM
  49. #define DYNAMIC_KEYMAP_EEPROM_MAX_ADDR 65535