clocks added to screensavers

This commit is contained in:
Justin 2023-08-22 17:35:23 +08:00 committed by GitHub
parent 5dc89016b3
commit 0019dee681
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1100,28 +1100,26 @@ def screensaver():
if "Pulsating Colors" in data:
screensaver_p = pexpect.spawn("sudo -E python3 pulsing-colors.py --led-gpio-mapping=adafruit-hat --led-slowdown-gpio=4 -r 32 --led-cols 64 -c 2 -P 1")
elif "Rotating Square" in data:
screensaver_p = pexpect.spawn("sudo ./demo --led-gpio-mapping=adafruit-hat --led-rows=32 --led-cols=128 -D 0")
elif "Pulsating brightness" in data:
screensaver_p = pexpect.spawn("sudo -E python3 pulsing-brightness.py --led-gpio-mapping=adafruit-hat --led-slowdown-gpio=4 -r 32 --led-cols 64 -c 2 -P 1")
elif "Volume Bars" in data:
screensaver_p = pexpect.spawn("sudo ./demo --led-gpio-mapping=adafruit-hat --led-rows=32 --led-cols=128 -D 9")
elif "Evolution of Color" in data:
screensaver_p = pexpect.spawn("sudo ./demo --led-gpio-mapping=adafruit-hat --led-rows=32 --led-cols=128 -D 10 -m 100")
elif "Conway's Game of Life" in data:
screensaver_p = pexpect.spawn("sudo ./demo --led-gpio-mapping=adafruit-hat --led-rows=32 --led-cols=128 -D 7 -m 100")
elif "Abelian Sandpile Model" in data:
screensaver_p = pexpect.spawn("sudo ./demo --led-gpio-mapping=adafruit-hat --led-rows=32 --led-cols=128 -D 6")
elif "Grayscale Block" in data:
screensaver_p = pexpect.spawn("sudo ./demo --led-gpio-mapping=adafruit-hat --led-rows=32 --led-cols=128 -D 5")
elif "Clock 1" in data:
screensaver_p = pexpect.spawn("sudo python3 clock_screensaver.py")
elif "Clock 2" in data:
screensaver_p = pexpect.spawn("sudo python3 clock_screensaver2.py")
elif "World Clock" in data:
screensaver_p = pexpect.spawn("sudo python3 world_clock2.py")
elif "Sleep" in data:
screensaver_p = DummyProcess()
else: #default in case user hasnt set one yet