Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FastLED/FastLED.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Garcia <danielgarcia@gmail.com>2016-04-21 06:37:13 +0300
committerDaniel Garcia <danielgarcia@gmail.com>2016-04-21 06:37:13 +0300
commitc376a50280d8bad78fe378c7352fb6d3acd8960c (patch)
tree9a95d668c749dca169b75006d0aceee48ed5b7d2
parentb48eb78deae33002ce2c2093134857b8a4686845 (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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/chipsets.h b/chipsets.h
index 54db5571..dd6ea236 100644
--- a/chipsets.h
+++ b/chipsets.h
@@ -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);