Teensy LC - USB MIDI - Adafruit_TLC59711 not working

hoglibogli

New member
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);

}
 
I've just noticed that I accidentally posted this in "Audio Projects". Maybe someone can move it into the right category please.
 
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.
 
Back
Top