Phage modifications:
- added API calls to enable length detection. in particular, had to modify the number of pixels in a strand to be a dynamic parameter, and also had to dup the pin toggling code into a separate call that follows it up with a rapid set of input port reads. A looped back strand will create a single pulse that is detectable by the microcontroller (in this case an ATTiny85). At the moment, the paramenters are hard-coded for use with just the phage-armband application.
=========================
Arduino library for controlling single-wire-based LED pixels and strip such as the Adafruit 60 LED/meter Digital LED strip, the Adafruit FLORA RGB Smart Pixel, the Adafruit Breadboard-friendly RGB Smart Pixel, the Adafruit NeoPixel Stick, and the Adafruit NeoPixel Shield.
After downloading, rename folder to 'Adafruit_NeoPixel' and install in Arduino Libraries folder. Restart Arduino IDE, then open File->Sketchbook->Library->Adafruit_NeoPixel->strandtest sketch.