Quantcast
Viewing all articles
Browse latest Browse all 5077

MicroPython • Re: 2 arguments Bur given three

The fill method needs a color value only.
Example:

color = pixels.colorHSV(hue, 255, 255)
pixels.fill(color)
my_strip .write()

or

green = (0, 255, 0)
pixels.fill(green)
my_strip .write()

or combine last sample into a one liner:

pixels.fill( (0, 255, 0) ) # note the extra brackets which form the color tuple
my_strip .write()


An internet search gave me https://www.coderdojotc.org/micropython ... -neopixel/ which shows some working sample.

Statistics: Posted by ghp — Sun Jul 14, 2024 7:55 am



Viewing all articles
Browse latest Browse all 5077

Trending Articles