Update bsp.py

master
zen 4 years ago
parent c506623c10
commit 15a9cd7e1d
  1. 2
      bsp.py

@ -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()

Loading…
Cancel
Save