I'm trying to get this LED matrix working over SPI on Teensy 4 (using pins 11 and 13 for DIN and CLK), but it seems like nothing at all is happening.
One weird thing: If I don't #include <Wire.h> explicitly, the program doesn't compile (the dependency isn't loaded transitively, but it is loaded explicitly. Weird).
Here's the minimum repro code. When I run it, literally nothing happens:
Has anyone managed to get these DotStar strips working on Teensy4 with hardware SPI?
One weird thing: If I don't #include <Wire.h> explicitly, the program doesn't compile (the dependency isn't loaded transitively, but it is loaded explicitly. Weird).
Here's the minimum repro code. When I run it, literally nothing happens:
Code:
#include <Wire.h>
#include <Adafruit_DotStar.h>
#define NUMPIXELS 64
Adafruit_DotStar strip(NUMPIXELS, PIN_SPI_MOSI, PIN_SPI_SCK);
void setup() {
strip.begin();
strip.clear();
strip.setBrightness(128);
strip.setPixelColor(1, 32, 0, 0); // turn on just one pixel, at low-brightness (since I'm powering over USB)
strip.show();
}
void loop() {
// do nothing.
}
Has anyone managed to get these DotStar strips working on Teensy4 with hardware SPI?