more screensavers
This commit is contained in:
parent
91b46ae2b0
commit
facbb5cbfa
22
server.py
22
server.py
@ -678,16 +678,28 @@ def screensaver():
|
|||||||
|
|
||||||
|
|
||||||
if "Pulsating Colors" in data:
|
if "Pulsating Colors" in data:
|
||||||
screensaver_p = pexpect.spawn("sudo -E python3 ./rpi-rgb-led-matrix/bindings/python/samples/pulsing-colors.py --led-gpio-mapping=adafruit-hat --led-slowdown-gpio=4 -r 32 --led-cols 64 -c 2 -P 1")
|
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:
|
elif "Rotating Square" in data:
|
||||||
screensaver_p = pexpect.spawn("sudo -E python3 ./rpi-rgb-led-matrix/bindings/python/samples/rotating-block-generator.py --led-gpio-mapping=adafruit-hat --led-slowdown-gpio=4 -r 32 --led-cols 64 -c 2 -P 1")
|
screensaver_p = pexpect.spawn("sudo ./demo --led-gpio-mapping=adafruit-hat --led-rows=32 --led-cols=128 -D 0")
|
||||||
|
|
||||||
elif "Pulsating brightness" in data:
|
elif "Pulsating brightness" in data:
|
||||||
screensaver_p = pexpect.spawn("sudo -E python3 ./rpi-rgb-led-matrix/bindings/python/samples/pulsing-brightness.py --led-gpio-mapping=adafruit-hat --led-slowdown-gpio=4 -r 32 --led-cols 64 -c 2 -P 1")
|
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 "Game of Life" in data:
|
elif "Volume Bars" in data:
|
||||||
screensaver_p = pexpect.spawn("sudo -E python3 game_of_life.py")
|
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 "Sleep" in data:
|
elif "Sleep" in data:
|
||||||
screensaver_p = DummyProcess()
|
screensaver_p = DummyProcess()
|
||||||
|
Loading…
Reference in New Issue
Block a user