diff options
author | Daniel Garcia <danielgarcia@gmail.com> | 2016-04-21 06:37:13 +0300 |
---|---|---|
committer | Daniel Garcia <danielgarcia@gmail.com> | 2016-04-21 06:37:13 +0300 |
commit | c376a50280d8bad78fe378c7352fb6d3acd8960c (patch) | |
tree | 9a95d668c749dca169b75006d0aceee48ed5b7d2 | |
parent | b48eb78deae33002ce2c2093134857b8a4686845 (diff) |
Tweak the APA102 output to write a tail frame of all 1's instead of trying to write black - it's possible that the SK6822 wants all 1's for the latch frame...
-rw-r--r-- | chipsets.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -160,7 +160,7 @@ class APA102Controller : public CPixelLEDController<RGB_ORDER> { SPI mSPI; void startBoundary() { mSPI.writeWord(0); mSPI.writeWord(0); } - void endBoundary(int nLeds) { int nBytes = (nLeds/32); do { mSPI.writeByte(0xFF); mSPI.writeByte(0x00); mSPI.writeByte(0x00); mSPI.writeByte(0x00); } while(nBytes--); } + void endBoundary(int nLeds) { int nBytes = (nLeds/32); do { mSPI.writeByte(0xFF); mSPI.writeByte(0xFF); mSPI.writeByte(0xFF); mSPI.writeByte(0xFF); } while(nBytes--); } inline void writeLed(uint8_t b0, uint8_t b1, uint8_t b2) __attribute__((always_inline)) { mSPI.writeByte(0xFF); mSPI.writeByte(b0); mSPI.writeByte(b1); mSPI.writeByte(b2); |