|
|
@ -255,7 +255,7 @@ class rgb_led(): |
|
|
|
self.LED_DMA, self.LED_INVERT, self.LED_BRIGHTNESS) |
|
|
|
self.LED_DMA, self.LED_INVERT, self.LED_BRIGHTNESS) |
|
|
|
self.strip.begin() |
|
|
|
self.strip.begin() |
|
|
|
|
|
|
|
|
|
|
|
def color(self, N, R, G, B): |
|
|
|
def color_raw(self, N, R, G, B): |
|
|
|
if (N < 4 and N > -1): |
|
|
|
if (N < 4 and N > -1): |
|
|
|
self.strip.setPixelColor(N, Color(R, G, B)) |
|
|
|
self.strip.setPixelColor(N, Color(R, G, B)) |
|
|
|
self.strip.show() |
|
|
|
self.strip.show() |
|
|
|