Import the library and examples

This commit is contained in:
TennesseeTrash 2025-12-05 01:19:16 +01:00
commit 7ee61b8ed0
7 changed files with 167 additions and 0 deletions

15
Examples/rgb.py Normal file
View file

@ -0,0 +1,15 @@
from tree import RGBXmasTree
from colorzero import Color
from time import sleep
tree = RGBXmasTree()
colors = [Color('red'), Color('green'), Color('blue')] # add more if you like
try:
while True:
for color in colors:
tree.color = color
sleep(1)
except KeyboardInterrupt:
tree.close()