config.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. /* Size of Bootloaders in bytes:
  18. * Atmel DFU loader(ATmega32U4) 4096
  19. * Atmel DFU loader(AT90USB128) 8192
  20. * LUFA bootloader(ATmega32U4) 4096
  21. * Arduino Caterina(ATmega32U4) 4096
  22. * USBaspLoader(ATmega***) 2048
  23. * Teensy halfKay(ATmega32U4) 512
  24. * Teensy++ halfKay(AT90USB128) 1024
  25. */
  26. #define BOOTLOADER_SIZE 8192
  27. #define NO_USB_STARTUP_CHECK
  28. #define PLANCK_MIT_LAYOUT
  29. // This is a 7-bit address, that gets left-shifted and bit 0
  30. // set to 0 for write, 1 for read (as per I2C protocol)
  31. // The address will vary depending on your wiring:
  32. // 0b1110100 AD <-> GND
  33. // 0b1110111 AD <-> VCC
  34. // 0b1110101 AD <-> SCL
  35. // 0b1110110 AD <-> SDA
  36. #define DRIVER_ADDR_1 0b1110100
  37. #define DRIVER_ADDR_2 0b1110110
  38. #define DRIVER_COUNT 2
  39. #define DRIVER_1_LED_TOTAL 25
  40. #define DRIVER_2_LED_TOTAL 24
  41. #define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL
  42. #endif