Routines to drive a chain of APA102 Leds.
Fork of APA102a by
Diff: APA102a.cpp
- Revision:
- 6:5d4edfc955f3
- Parent:
- 5:863fb3a71efd
- Child:
- 8:3bb15df4903d
--- a/APA102a.cpp Tue Apr 07 01:17:05 2015 +0000 +++ b/APA102a.cpp Tue Apr 07 01:41:17 2015 +0000 @@ -5,9 +5,9 @@ : _spi(mosi, miso, sclk) { - // Setup the spi for 8 bit data, high steady state clock, + // Setup the spi for 8 bit data, low steady state clock, // second edge capture, with clock rate, clock active low, rising edge - _spi.format(8,2); + _spi.format(8,0); _spi.frequency(rate); }