From 91223e91e8342ce709bb4e03da5003264b3fa74e Mon Sep 17 00:00:00 2001 From: David Madison Date: Tue, 28 Mar 2017 01:03:25 -0400 Subject: [PATCH 1/3] indexOut incremented independent of outPos This resolves issue #5 --- Arduino/LEDstream_FastLED/LEDstream_FastLED.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Arduino/LEDstream_FastLED/LEDstream_FastLED.ino b/Arduino/LEDstream_FastLED/LEDstream_FastLED.ino index 0fecce1..324f0b6 100644 --- a/Arduino/LEDstream_FastLED/LEDstream_FastLED.ino +++ b/Arduino/LEDstream_FastLED/LEDstream_FastLED.ino @@ -171,16 +171,16 @@ void adalight(){ if (outPos < sizeof(leds)){ #ifdef CALIBRATE if(outPos < 3) - ledsRaw[outPos++] = buffer[indexOut++]; + ledsRaw[outPos++] = buffer[indexOut]; else{ ledsRaw[outPos] = ledsRaw[outPos%3]; // Sets RGB data to first LED color outPos++; - indexOut++; } #else - ledsRaw[outPos++] = buffer[indexOut++]; // Issue next byte + ledsRaw[outPos++] = buffer[indexOut]; // Issue next byte #endif } + indexOut++; bytesBuffered--; bytesRemaining--; } From 1eca0f13e7ba5e25bac82506ac77a01c5c933445 Mon Sep 17 00:00:00 2001 From: David Madison Date: Wed, 29 Mar 2017 22:46:35 -0400 Subject: [PATCH 2/3] Added header image --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index f810628..cf1b638 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ +# Adalight-FastLED + +![Adalight-Rainbow](http://i.imgur.com/sHygxq9.jpg) + ## Synopsis This project modifies the Adalight protocol to use [FastLED](https://github.com/FastLED/FastLED) ([fastled.io](http://fastled.io)). This expands Adalight to, in theory, work with *[any supported FastLED strip](https://github.com/FastLED/FastLED/wiki/Chipset-reference)* including WS2812B (aka Adafruit NeoPixels). From 38e59172c3e7dc44e20cf737b05a5f33c5fd72cd Mon Sep 17 00:00:00 2001 From: David Madison Date: Wed, 29 Mar 2017 22:54:14 -0400 Subject: [PATCH 3/3] Update README.md --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cf1b638..1a58576 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,9 @@ This project modifies the Adalight protocol to use [FastLED](https://github.com/FastLED/FastLED) ([fastled.io](http://fastled.io)). This expands Adalight to, in theory, work with *[any supported FastLED strip](https://github.com/FastLED/FastLED/wiki/Chipset-reference)* including WS2812B (aka Adafruit NeoPixels). -In addition to ambilight setups, the protocol can be used to stream *any* color data from a computer to supported LED strips. +In addition to ambilight setups, the protocol can be used to stream *any* color data over serial from a computer to supported LED strips. + +For this sketch to work, you'll need to have a copy of the FastLED library. You can download FastLED [from GitHub](https://github.com/FastLED/FastLED) or through the libraries manager of the Arduino IDE. This program was writen using FastLED 3.1.3 - note that earlier versions of FastLED are untested and may not work properly. ## Configuration @@ -33,7 +35,7 @@ I've only tested the code with the WS2812B strips I have on hand, but so far it ## Credits and Contributions -Thanks to Adafruit for the initial code and the Adalight protocol. The base for the original FastLED modifications is [this gist](https://gist.github.com/jamesabruce/09d79a56d270ed37870c) by [James Bruce](https://github.com/jamesabruce). Thanks James! +Thanks to Adafruit for the initial code and for developing the Adalight protocol. The base for the original FastLED modifications is [this gist](https://gist.github.com/jamesabruce/09d79a56d270ed37870c) by [James Bruce](https://github.com/jamesabruce). Thanks James! Pull requests to improve this software are always welcome!