Adafruit_CircuitPython_NeoPxl8/examples/neopxl8_simpletest.py
2022-11-04 13:05:01 -05:00

20 lines
518 B
Python

from adafruit_neopxl8 import NeoPxl8
import board
import time
# Customize for your strands here
num_strands = 8
strand_length = 30
first_led_pin = board.NEOPIXEL0
num_pixels = num_strands * strand_length
# Make the object to control the pixels
pixels = NeoPxl8(board.GP0, num_strands*strand_length, num_strands=num_strands, auto_write=False, brightness=1.00)
while True:
for i in range(num_pixels):
pixels[i] = 0x00_01_00
pixels[i-8] = 0x00_00_00
pixels.show()
time.sleep(1e-3)