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.

48 lines
1.0 KiB

  1. #ifndef LIGHT_CONFIG_H
  2. #define LIGHT_CONFIG_H
  3. #include "config_common.h"
  4. #undef PRODUCT
  5. #define PRODUCT Planck Light
  6. #undef PRODUCT_ID
  7. #define PRODUCT_ID 0x6065
  8. #define DEVICE_VER 0x0001
  9. #undef MATRIX_ROW_PINS
  10. #undef MATRIX_COL_PINS
  11. #define MATRIX_ROW_PINS { B0, E7, F0, F1 }
  12. #define MATRIX_COL_PINS { E6, E3, E4, D3, D4, D5, C0, A7, A6, E1, E0, D7 }
  13. #define C6_AUDIO
  14. #define B5_AUDIO
  15. #undef BACKLIGHT_PIN
  16. #define BACKLIGHT_PIN A5
  17. #define NO_USB_STARTUP_CHECK
  18. #define PLANCK_MIT_LAYOUT
  19. // This is a 7-bit address, that gets left-shifted and bit 0
  20. // set to 0 for write, 1 for read (as per I2C protocol)
  21. // The address will vary depending on your wiring:
  22. // 0b1110100 AD <-> GND
  23. // 0b1110111 AD <-> VCC
  24. // 0b1110101 AD <-> SCL
  25. // 0b1110110 AD <-> SDA
  26. #define DRIVER_ADDR_1 0b1110100
  27. #define DRIVER_ADDR_2 0b1110110
  28. #define DRIVER_COUNT 2
  29. #define DRIVER_1_LED_TOTAL 25
  30. #define DRIVER_2_LED_TOTAL 24
  31. #define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL
  32. #define NUMBER_OF_ENCODERS 1
  33. #define ENCODERS_PAD_A { F6 }
  34. #define ENCODERS_PAD_B { F7 }
  35. #endif