Permalink
Browse files

updated comments - release ready

  • Loading branch information...
adammhaile committed Oct 6, 2012
1 parent 6b813fe commit fcc1cbb480c991b1fc677bf3f8adb5aa8166e9df
Showing with 3 additions and 1 deletion.
  1. +1 −1 LPD8806.py
  2. +2 −0 example.py
View
@@ -96,7 +96,6 @@ def __init__(self, leds, dev="/dev/spidev0.0"):
self.masterBrightness = 1.0
#anim step vars
- self.wheelStep = 0
self.rainbowStep = 0
self.rainbowCycleStep = 0
self.wipeStep = 0
@@ -228,6 +227,7 @@ def anim_rainbow(self, start=0, end=0):
for i in range(size):
color = (i + self.rainbowStep) % 384
c = self.wheel_color(color)
+ hue = (i + self.larsonStep) % 360
self.set(start + i, c)
self.rainbowStep += 1
View
@@ -32,6 +32,8 @@
led.all_off()
+#animations - each animation method moves the animation forward one step on each call
+#after each step, call update() to push it to the LED strip
#sin wave animations
color = Color(255, 0, 0)
for i in range(led.lastIndex):

0 comments on commit fcc1cbb

Please sign in to comment.