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.

3 年之前
123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef TLC_Teensy_xxU4_h
  2. #define TLC_Teensy_xxU4_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 2) -> 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 1) -> 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 0)
  15. #define TLC_SS_PIN 0
  16. #define TLC_SS_DDR DDRB
  17. // OC1A (Teensy pin 14) -> XLAT (TLC pin 24)
  18. #define XLAT_PIN 5
  19. #define XLAT_PORT PORTB
  20. #define XLAT_DDR DDRB
  21. // OC1B (Teensy pin 15) -> BLANK (TLC pin 23)
  22. #define BLANK_PIN 6
  23. #define BLANK_PORT PORTB
  24. #define BLANK_DDR DDRB
  25. // OC3A (Teensy pin 9) -> GSCLK (TLC pin 18)
  26. #define GSCLK_PIN 6
  27. #define GSCLK_PORT PORTC
  28. #define GSCLK_DDR DDRC
  29. #define TLC_TIMER3_GSCLK 1
  30. #endif