Browse Source

Add colortest script for quick color testing

master
Nathaniel Walizer 3 years ago
parent
commit
84da2471ec
1 changed files with 12 additions and 0 deletions
  1. +12
    -0
      colortest.py

+ 12
- 0
colortest.py View File

@@ -0,0 +1,12 @@
#!/usr/bin/python3

import board
import neopixel
import sys

length = 50

pixels = neopixel.NeoPixel(board.D18, length, pixel_order=neopixel.RGB, auto_write=False)

pixels.fill(tuple(int(sys.argv[x]) for x in (1, 2, 3)))
pixels.show()

Loading…
Cancel
Save