added stop_effect, get_effects

fixed some wrong calculations from hsv to pwm
added lots of todo descriptions
changed find_stripe from requiring a json to sid directly
This commit is contained in:
Giovanni Harting
2015-08-28 21:10:14 +02:00
parent dfaeea33c9
commit 12e946ab39
3 changed files with 62 additions and 21 deletions

View File

@@ -57,7 +57,7 @@ class Stripe:
def set_color(self, c):
self._color = c
for channel, gamma_correct, value in zip(self.channels, self.gamma_correct, c.clamped_rgb):
self.controller.set_channel(channel, value * 255)
self.controller.set_channel(channel, value)
def get_color(self):
return self._color