Initial port of the adafruit led strip controller code from arduino source