Skip to content

Instantly share code, notes, and snippets.

@boochow
Created November 11, 2017 11:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boochow/ab20408bf8438e594786960a1306ed4f to your computer and use it in GitHub Desktop.
Save boochow/ab20408bf8438e594786960a1306ed4f to your computer and use it in GitHub Desktop.
# 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)
@boochow
Copy link
Author

boochow commented Nov 11, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment