PlatformIO package of the Teensy core framework compatible with GCC 10 & C++20
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.

39 lines
828B

  1. #ifndef TLC_Teensypp_xxx6_H
  2. #define TLC_Teensypp_xxx6_H
  3. #if DATA_TRANSFER_MODE == TLC_BITBANG
  4. #error "If you want bitbang mode, insert pin defs here"
  5. #endif
  6. // MOSI (Teensy++ pin 22) -> SIN (TLC pin 26)
  7. #define TLC_MOSI_PIN 2
  8. #define TLC_MOSI_PORT PORTB
  9. #define TLC_MOSI_DDR DDRB
  10. // SCK (Teensy++ pin 21) -> SCLK (TLC pin 25)
  11. #define TLC_SCK_PIN 1
  12. #define TLC_SCK_PORT PORTB
  13. #define TLC_SCK_DDR DDRB
  14. // SS (Teensy++ pin 20)
  15. #define TLC_SS_PIN 0
  16. #define TLC_SS_DDR DDRB
  17. // OC1A (Teensy++ pin 25) -> XLAT (TLC pin 24)
  18. #define XLAT_PIN 5
  19. #define XLAT_PORT PORTB
  20. #define XLAT_DDR DDRB
  21. // OC1B (Teensy++ pin 26) -> BLANK (TLC pin 23)
  22. #define BLANK_PIN 6
  23. #define BLANK_PORT PORTB
  24. #define BLANK_DDR DDRB
  25. // OC2B (Teensy++ pin 1) -> GSCLK (TLC pin 18)
  26. #define GSCLK_PIN 1
  27. #define GSCLK_PORT PORTD
  28. #define GSCLK_DDR DDRD
  29. #endif