Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 4 of 4

Thread: TLC5940 led driver on Teensy 4.0

  1. #1
    Junior Member
    Join Date
    Jan 2020
    Posts
    7

    TLC5940 led driver on Teensy 4.0

    Hello everyone, I'm trying to interface the TLC5940 to teensy 4.0.
    I used the pins shown on this page:

    https://www.pjrc.com/teensy/td_libs_Tlc5940.html

    where, for design reasons I used pin 9 instead of 7 for the SCLK signal.

    the pins to be reassigned with respect to the base pins of the sketches
    edit here:
    https://github.com/PaulStoffregen/Tl...y_KinetisK20.h

    but when I assemble the program the error is:

    #error "Unknown Chip!"

    I think Because the 4.0 processor is not listed in the library.

    Any suggest?

    Thanks a lot
    ScopeMaster

  2. #2
    Junior Member
    Join Date
    Jun 2018
    Posts
    3
    Exactly the same issue here. I'm trying to use with Teensy 4.1.

    I believe from another thread that the TLC5940 uses MCU specific code for speed.

    Fingers crossed Teensy 4.x is added!

  3. #3
    Hi, unfortunately I have the same problem, I have a teensy 4.1 and I cannot get the TLC5940 to work ... Did you find a solution?

  4. #4
    Junior Member
    Join Date
    Jun 2018
    Posts
    3
    Quote Originally Posted by Anoat View Post
    Hi, unfortunately I have the same problem, I have a teensy 4.1 and I cannot get the TLC5940 to work ... Did you find a solution?
    No I haven't. But I'm convinced it won't work unless specific code is written for this processor. In the end I used a Atmega 328p to talk to the TLC5940 and talked to the Atmega from the Teensy via i2c. It actually helped in that I could simplify the commands and put all the timing code (i put fades on LEDs) on the Atmega so my main code runs nice and simple. Not perfect for every situation but worked for me... Hope this helps.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •