You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.5 KiB

  1. #pragma once
  2. #include "config_common.h"
  3. #define PRODUCT DMOTE (62-key)
  4. #define MATRIX_ROWS 12
  5. #define MATRIX_COLS 6
  6. // MCUs are flipped on each side, relative to the shape of the case,
  7. // but for ease of mounting, the pinout is not flipped with the controller.
  8. // The same finger on each hand uses a column connected to the pin with the
  9. // same silk-screen label on each Pro Micro.
  10. // Pin use:
  11. //
  12. // MCU | Silk | DMOTE
  13. // -----+------+----------
  14. // D3 | TX0 |
  15. // D2 | RX1 |
  16. // D1 | 2 | LED strip input (dominant half only)
  17. // D0 | 3 | Serial interface between halves
  18. // D4 | 4 | Outermost pinky-finger column
  19. // C6 | 5 | Column
  20. // D7 | 6 | Column
  21. // E6 | 7 | Column
  22. // B4 | 8 | Column
  23. // B5 | 9 | Outermost index-finger column
  24. // -----+------+----------
  25. // F4 | A3 |
  26. // F5 | A2 |
  27. // F6 | A1 | Top row (furthest from user)
  28. // F7 | A0 | Row
  29. // B1 | 15 | Row
  30. // B3 | 14 | Row
  31. // B2 | 16 | Row
  32. // B6 | 10 | Bottom row (closest to user)
  33. #define MATRIX_ROW_PINS { F6, F7, B1, B3, B2, B6 }
  34. #define MATRIX_COL_PINS { D4, C6, D7, E6, B4, B5 }
  35. // WS2812 RGB LED, normally used to indicate keyboard state:
  36. #define RGBLIGHT_EFFECT_KNIGHT
  37. #define RGBLIGHT_EFFECT_KNIGHT_LENGTH 2
  38. #define RGBLIGHT_EFFECT_CHRISTMAS
  39. #define RGBLIGHT_EFFECT_CHRISTMAS_STEP 1
  40. #define RGB_DI_PIN D1
  41. #define RGBLED_NUM 6 // Used when chaining strips
  42. #define RGBLED_SPLIT { 3, 3 } // Used when not chaining strips
  43. #define ws2812_PORTREG PORTD
  44. #define ws2812_DDRREG DDRD