Featureful Python controller code for WS2811/WS2812/NeoPixels
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
235B

  1. #!/usr/bin/python3
  2. import board
  3. import neopixel
  4. import sys
  5. length = 50
  6. pixels = neopixel.NeoPixel(board.D18, length, pixel_order=neopixel.RGB, auto_write=False)
  7. pixels.fill(tuple(int(sys.argv[x]) for x in (1, 2, 3)))
  8. pixels.show()