From 24fe82ecc0f746bfd88944ebab1e3b3dee16fcf1 Mon Sep 17 00:00:00 2001 From: Ben Nuttall Date: Tue, 17 Dec 2019 21:57:14 +0000 Subject: [PATCH] Add sleep to RGB example --- examples/rgb.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/rgb.py b/examples/rgb.py index e48412d..40aba52 100644 --- a/examples/rgb.py +++ b/examples/rgb.py @@ -1,5 +1,6 @@ from tree import RGBXmasTree from colorzero import Color +from time import sleep tree = RGBXmasTree() @@ -9,5 +10,6 @@ while True: for color in colors: tree.color = color + sleep(1) except KeyboardInterrupt: tree.close()