adafruit / Adafruit_CircuitPython_DotStar

Dotstarrin' away in CircuitPython land
MIT License
47 stars 38 forks source link

Arrange a random color to more dots directly #55

Closed miloit closed 3 years ago

miloit commented 3 years ago

Hello, I try to define a random color and apply it to 5 dots directly here is my code

r = random.randint(0, 255) g = random.randint(0, 255) b = random.randint(0, 255) self.strip[0:5] = (r,g,b) * 5 self.strip.show()

But it is always blue.

What is the issue?

tannewt commented 3 years ago

Please ask on the forum or Discord for technical support. Issues are for tracking issues that require code changes in a library.