Created
November 11, 2017 11:07
-
-
Save boochow/ab20408bf8438e594786960a1306ed4f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Connect IO25 to DIN | |
import machine, neopixel, time | |
np = neopixel.NeoPixel(machine.Pin(25), 8) | |
for i in range(65): | |
np[(i + 7) % 8] = (0,0,0) | |
np[i % 8] = ((i * 4) % 64, (i * 8) % 64, (i * 16) % 64) | |
np.write() | |
time.sleep_ms(40) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://blog.boochow.com/article/454815988.html