I'm using this library to test out a TPIC6B595 on a breadboard with a singular LED... I've got the following pins connected to the Teensy:
- Data in pin connected to pin 21 (MOSI1)
- Clock pin connected to pin to pin 20 (SCK1)
- Latch pin connected to pin 19
- Data clear I've tried connecting to pin 31, but long term plan is to just connect the IC pin to 5v via a 10k resistor.
Aside from that, the IC is connected up exactly as the datasheet describes, and I have a single LED connected between 5v rail and one of the IC drains via a 470R resistor. According to every diagram I've seen, this should work without issue. I've double checked that the LED is the right way round, and tried two different ICs (both new) to no avail - the LED doesn't light...
I've just read some of this about using SPI with Teensy: SPI Arduino Library, connecting SPI devices to Teensy
I'm wondering, do I need to use any of this code to change pin modes or set up SPI in addition to the library I'm using - could that be the issue?
Tried adding the following but no success yet
SPI.begin(); SPI.setMOSI(21); SPI.setSCK(20);