// Hardware SPI is a little faster, but must be wired to specific pins
// (Arduino Uno = pin 11 for data, 13 for clock, other boards are different).
//Adafruit_DotStar strip(NUMPIXELS, DOTSTAR_BGR);
Sounds good; faster is better. Which pins? In pins_adruino.h for the feather_esp32:
static const uint8_t SS = 33;
static const uint8_t MOSI = 18;
static const uint8_t MISO = 19;
static const uint8_t SCK = 5;
...matches the silkscreen on the Feather.
I connected the DotStar strip to pins 5 (SCK), 18 (MO) and modified strandtest.ino:
- Code: Select all | TOGGLE FULL SIZE
#define DATAPIN 18
#define CLOCKPIN 5
Adafruit_DotStar strip(NUMPIXELS, DATAPIN, CLOCKPIN, DOTSTAR_BGR);
The software SPI works fine, but when I modify it for hardware SPI:
- Code: Select all | TOGGLE FULL SIZE
Adafruit_DotStar strip(NUMPIXELS, DOTSTAR_BGR);
...it doesn't work at all. In fact, probing with an oscilloscope, I don't see anything that looks like clock/data on any pin.
I guess I'm missing something? How do you get hardware SPI to work?