circuitPython_dotstar_feath.../examples/count_from_right/main.py
2017-12-20 14:55:16 -05:00

13 lines
347 B
Python

import board
import dotstar_featherwing
import time
wing = dotstar_featherwing.DotstarFeatherwing(board.D13, board.D11)
# count from 0->63, shifting the binary pattern in from the right
while True:
wing.clear()
for x in range(64):
wing.shift_into_right(wing.number_to_pixels(x, (64, 0, 0)))
wing.show()
time.sleep(0.2)