diff --git a/examples/fireflies.py b/examples/fireflies.py index 23d238a..f9b9eb9 100644 --- a/examples/fireflies.py +++ b/examples/fireflies.py @@ -3,7 +3,7 @@ import ws2812b import random bright_div = 20 -numpix = 30 # Number of NeoPixels +numpix = 50 # Number of NeoPixels # Pin where NeoPixels are connected strip = ws2812b.ws2812b(numpix, 0,0) @@ -12,7 +12,7 @@ colors = [ [200, 200, 20], # Yellow [30, 200, 200], # Blue [150,50,10], - [50,200,0], + [50,200,10], ] max_len=20 @@ -20,7 +20,7 @@ min_len = 5 #pixelnum, posn in flash, flash_len, direction flashing = [] -num_flashes = 5 +num_flashes = 10 for i in range(num_flashes): pix = random.randint(0, numpix - 1) @@ -49,6 +49,6 @@ while True: flash_len = random.randint(min_len, max_len) flashing[i] = [pix, colors[col], flash_len, 0, 1] flashing[i][3] = flashing[i][3] + flashing[i][4] - time.sleep(0.007) + time.sleep(0.005) \ No newline at end of file