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

Thread: Teensy LC - USB MIDI - Adafruit_TLC59711 not working

  1. #1
    Junior Member
    Join Date
    Oct 2022
    Posts
    3

    Teensy LC - USB MIDI - Adafruit_TLC59711 not working

    Since this is my first post here, Hi to everyone.

    I'm working on a simple MIDI motorfader controller. It uses a Teensy LC.
    To drive 4 LEDs I use an Adafruit TLC59711 driver board, that uses the Adafruit_TLC59711.h and SPI.h libraries.
    The TLC59711 works just fine until I switch the USB type to MIDI.
    I tried different pins for data/clock (5-11), but that made no difference.

    Here is my testcode, that works just fine with type "Serial" and does NOT work with type "MIDI/Serial+Midi/MIDIx4/Serial+MIDIx4"

    Can anyone point to a solution here?

    Code:
    #include "Adafruit_TLC59711.h"
    #include <SPI.h>
    
    // How many boards do you have chained?
    #define NUM_TLC59711 1
    
    #define data   5
    #define clock  6
    
    Adafruit_TLC59711 tlc = Adafruit_TLC59711(NUM_TLC59711, clock, data);
    
    void setup() {
      tlc.begin();
      tlc.write();
    }
    
    void loop() {
    
      tlc.setLED(0,30000,30000,30000); //LED Number, Red, Green, Blue (Led startet bei 0, LED Werte 0-65535 müssen uint16_t sein)
      tlc.write();
      delay(500);
    
      tlc.setLED(0,0,0,0);
      tlc.write();
      delay(500);
    
    }

  2. #2
    Junior Member
    Join Date
    Oct 2022
    Posts
    3
    I've just noticed that I accidentally posted this in "Audio Projects". Maybe someone can move it into the right category please.

  3. #3
    Junior Member
    Join Date
    Oct 2022
    Posts
    3
    Arduino 2.0 was the problem. It woks just fine with the "old" IDE

  4. #4
    Senior Member
    Join Date
    Apr 2019
    Posts
    202
    I would recommend PlatformIO on Visual Studio Code

  5. #5
    Senior Member BriComp's Avatar
    Join Date
    Apr 2014
    Location
    Cheltenham, UK
    Posts
    949
    I would recommend VisualMicro with Visual Studio. All the benefits of Visual Studio without the troublesome setup of PlatformIO.

    Also, since VisualMicro sits on top of the Arduino IDE it is always up to date.

Posting Permissions

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