From 2390ded42d3a94279d4b2156848b6b183ed10c0b Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Sat, 19 Feb 2022 22:54:52 -0500 Subject: [PATCH] first edit by Tucker --- Code/Server/test.py | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/Code/Server/test.py b/Code/Server/test.py index fc58969..77e7728 100644 --- a/Code/Server/test.py +++ b/Code/Server/test.py @@ -3,14 +3,22 @@ from Led import * led=Led() def test_Led(): try: - led.ledIndex(0x01,255,0,0) #Red - led.ledIndex(0x02,255,125,0) #orange - led.ledIndex(0x04,255,255,0) #yellow - led.ledIndex(0x08,0,255,0) #green - led.ledIndex(0x10,0,255,255) #cyan-blue - led.ledIndex(0x20,0,0,255) #blue + #led.ledIndex(0x01,255,0,0) #Red + #led.ledIndex(0x02,255,125,0) #orange + #led.ledIndex(0x04,255,255,0) #yellow + #led.ledIndex(0x08,0,255,0) #green + #led.ledIndex(0x10,0,255,255) #cyan-blue + #led.ledIndex(0x20,0,0,255) #blue + #led.ledIndex(0x40,128,0,128) #purple + #led.ledIndex(0x80,255,255,255) #white''' + led.ledIndex(0x01,128,0,128) #Red + led.ledIndex(0x02,128,0,128) #orange + led.ledIndex(0x04,128,0,128) #yellow + led.ledIndex(0x08,128,0,128) #green + led.ledIndex(0x10,128,0,128) #cyan-blue + led.ledIndex(0x20,128,0,128) #blue led.ledIndex(0x40,128,0,128) #purple - led.ledIndex(0x80,255,255,255) #white''' + led.ledIndex(0x80,128,0,128) #white''' print ("The LED has been lit, the color is red orange yellow green cyan-blue blue white") time.sleep(3) #wait 3s led.colorWipe(led.strip, Color(0,0,0)) #turn off the light