From 84da2471ec79cf5673137c0d37f9913e412d57e7 Mon Sep 17 00:00:00 2001 From: Nathaniel Walizer Date: Mon, 5 Sep 2022 09:06:08 -0700 Subject: [PATCH] Add colortest script for quick color testing --- colortest.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 colortest.py diff --git a/colortest.py b/colortest.py new file mode 100755 index 0000000..40229d1 --- /dev/null +++ b/colortest.py @@ -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()