Skip to content

Commit

Permalink
Add sleep to RGB example
Browse files Browse the repository at this point in the history
  • Loading branch information
bennuttall committed Dec 17, 2019
1 parent 028d5a8 commit 24fe82e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/rgb.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from tree import RGBXmasTree
from colorzero import Color
from time import sleep

tree = RGBXmasTree()

Expand All @@ -9,5 +10,6 @@
while True:
for color in colors:
tree.color = color
sleep(1)
except KeyboardInterrupt:
tree.close()

0 comments on commit 24fe82e

Please sign in to comment.