From 05be57279b00db86a1e208d0592482db4e9d00ac Mon Sep 17 00:00:00 2001 From: blaz-r Date: Sun, 18 Jul 2021 14:56:04 +0200 Subject: [PATCH] Added HSV example --- examples/smoothRainbow.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 examples/smoothRainbow.py diff --git a/examples/smoothRainbow.py b/examples/smoothRainbow.py new file mode 100644 index 0000000..efe8baa --- /dev/null +++ b/examples/smoothRainbow.py @@ -0,0 +1,14 @@ +# Example showing use of HSV colors +import time +from neopixel import Neopixel + +numpix = 60 +strip = Neopixel(numpix, 0, 0, "GRB") + +hue = 0 +while(True): + color = strip.colorHSV(hue, 255, 150) + strip.fill(color) + strip.show() + + hue += 150 \ No newline at end of file