config.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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 0x4145 // "AE"
  17. #define PRODUCT_ID 0xA652 // AEboards EXT65 Rev2
  18. #define DEVICE_VER 0x0001
  19. #define MANUFACTURER AEBoards
  20. #define PRODUCT AEBoards Ext65 Rev2
  21. /* key matrix size */
  22. /* key matrix size */
  23. #define MATRIX_ROWS 10
  24. #define MATRIX_COLS 10
  25. /* key matrix pins */
  26. #define MATRIX_ROW_PINS { A10, A9, A8, B7, A2, A1, B12, B11, B10, B2 }
  27. #define MATRIX_COL_PINS { B14, B6, A0, B1, B0, A7, A6, A5, A4, A3 }
  28. #define DIODE_DIRECTION COL2ROW
  29. /* Set 0 if debouncing isn't needed */
  30. #define DEBOUNCE 5
  31. /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
  32. #define LOCKING_SUPPORT_ENABLE
  33. /* Locking resynchronize hack */
  34. #define LOCKING_RESYNC_ENABLE
  35. //RGB Underglow WS2812
  36. #define RGBLIGHT_ANIMATIONS
  37. #define RGBLED_NUM 24
  38. #define RGB_DI_PIN B15
  39. //SPI
  40. #define WS2812_SPI SPID2
  41. #define WS2812_SPI_MOSI_PAL_MODE 0
  42. #define WS2812_SPI_SCK_PAL_MODE 0
  43. #define WS2812_SPI_SCK_PIN B13
  44. #define WS2812_EXTERNAL_PULLUP
  45. // I2C OLED defines
  46. #define I2C1_SCL 8
  47. #define I2C1_SDA 9
  48. #define I2C1_SCL_PAL_MODE 1
  49. #define I2C1_SDA_PAL_MODE 1
  50. #define I2C1_TIMINGR_SCLDEL 3U
  51. #define I2C1_TIMINGR_SDADEL 1U
  52. #define I2C1_TIMINGR_SCLH 3U
  53. #define I2C1_TIMINGR_SCLL 9U
  54. // LED defines
  55. #define BACKLIGHT_PIN B5
  56. #define BACKLIGHT_PWM_DRIVER PWMD3
  57. #define BACKLIGHT_PWM_CHANNEL 2
  58. #define BACKLIGHT_PAL_MODE 1
  59. #define BACKLIGHT_LEVELS 6
  60. #define BACKLIGHT_BREATHING
  61. #define BREATHING_PERIOD 6
  62. #define SLEEP_LED_GPT_DRIVER GPTD1