switched from colour to spectra

disabled gamma correction for now - needs some more work
implemented set_color and add_stripe
This commit is contained in:
Giovanni Harting
2015-08-28 06:12:20 +02:00
parent 597de55291
commit 0d8105c93b
5 changed files with 77 additions and 29 deletions

View File

@@ -99,7 +99,7 @@ class Controller:
self.bus.write_word_data(int(self.address, 16), LED0_ON_L + 4 * channel, 0)
def get_channel(self, channel):
return self.bus.read_word_data(self.address, LED0_OFF_L + 4 * channel)
return self.bus.read_word_data(int(self.address, 16), LED0_OFF_L + 4 * channel) / 4095
def add_stripe(self, stripe):
self.stripes.append(stripe)