I want to use the TLC59711 to drive 12 separate LEDS using an ESP32. When I upload the test sketch that comes with the Adafruit library everything works fine but when I want to address an individual LED using
Code: Select all
setPWM()
Code: Select all
setLED()
This is my test code that works on the Arduino Uno but not on the ESP32:
Code: Select all
#include "Adafruit_TLC59711.h"
#include <SPI.h>
#define NUM_TLC59711 2
#define data 26
#define clock 25
Adafruit_TLC59711 tlc = Adafruit_TLC59711(NUM_TLC59711, clock, data);
void setup()
{
Serial.begin(9600);
Serial.println("TLC59711 test");
tlc.begin();
tlc.write();
}
void loop()
{
tlc.setPWM(0, 65535);
tlc.setPWM(1, 65535);
tlc.setPWM(2, 65535);
tlc.setPWM(3, 65535);
tlc.write();
}