User Manual

Table Of Contents
65
self.LED_COUNT,
self.LED_PIN,
self.LED_FREQ_HZ,
self.LED_DMA,
self.LED_INVERT,
self.LED_BRIGHTNESS,
self.LED_CHANNEL
)
self.strip.begin()
def colorWipe(self, R, G, B): #
This function is used to change the color of the LED light
color = Color(R, G, B)
for i in range(self.strip.numPixels()): # Only one LED light color can be set at a time, so we need to do a loop
self.strip.setPixelColor(i, color)
self.strip.show() # The color will only change after calling the show method