config.h 978 B

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