Implement Hackertours effect

This commit is contained in:
Stefan Bethke 2024-12-16 16:15:56 +01:00
commit 93b409736f
6 changed files with 60 additions and 12 deletions

View file

@ -7,7 +7,7 @@ from typing import Tuple
from bottle import post, request, route, run, static_file, view
from animation import Off
from dmx import DMX, Bar252, StairvilleLedPar56, REDSpot18RGB
from dmx import DMX, Bar252, StairvilleLedPar56, REDSpot18RGB, ZhennbyPar
room = ''
@ -74,6 +74,13 @@ def main(args):
Bar252(dmx, 51),
Bar252(dmx, 62),
]
elif args.room == "hackertours":
dmx._rgbs = [
ZhennbyPar(dmx, 1),
ZhennbyPar(dmx, 8),
ZhennbyPar(dmx, 15),
ZhennbyPar(dmx, 22),
]
else:
print(f"Unknown room {args.room}", file=sys.stderr)
sys.exit(64)