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.

Also tried two different boards.

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>
#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);
  tlc.write();
  delay(500);

  tlc.setLED(0,0,0,0);
  tlc.write();
  delay(500);

}

Arduino 2.0 was the problem. It woks just fine with the "old" IDE

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.