Browse files

Markdown syntax fix

  • Loading branch information...
1 parent bec7115 commit 924ce98d90e9b32806d46f747cccae125e535721 @adammhaile committed Oct 6, 2012
Showing with 8 additions and 3 deletions.
  1. +8 −3
@@ -4,13 +4,18 @@ Initial code from:
See a demo video here:
Download, extract, then run the help:
- >>> import LPD8806
- >>> help(LPD8806)
+ >>> import LPD8806
+ >>> help(LPD8806)
- The LPD8806 chip does not seem to really specify in what order the color channels are, so there is a helper function in case yours happen to be different. The most common seems to be GRB order but I have found some strips that use BRG order as well. If yours (like the one's from Adafruit) use GRB order nothing needs to be done as this is the default. But if the channels are swapped call the method setChannelOrder() with the proper ChannelOrder value. Those are the only two I've ever encountered, but if anyone ever encounters another, please let me know so I can add it.
- All of the animations are designed to allow you to do other things on the same thread in between frames. So, everytime you want to actually progress the animation, call it's method and then call update() to push the data to the the strip. You could do any other processing on the buffer before pushing the update if needed. Each animation has a step variable that can be manually reset or modified externally. See variables in the __init__ of LEDStrip
- If any of the built in animations are not enough you can use any of the set or fill methods to manually manipulate the strip data.
- - These strips can get extremely bright
+ - These strips can get extremely bright (the above video was filmed using 50% brightness) so you can use setMasterBrightness() to set a global level which all output values are multiplied by. This way you don't have to manually modify all of the RGB values to adjust the levels. However, Color takes an optional brightness value so that it can be set on an individual level. Last, if using HSV, you can just set it's "Value" component to adjust the brightness level.
+ - ColorHSV is there for easily fading through a natural color progression. However, all methods take a Color object, so call ColorHSV.getColorRGB() before passing to any of the set, fill, or animation methods.

0 comments on commit 924ce98

Please sign in to comment.