Add Entec RGBW
This commit is contained in:
parent
517c7df66a
commit
ef3c8d9a2c
2 changed files with 16 additions and 5 deletions
|
|
@ -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, ZhennbyPar
|
||||
from dmx import DMX, Bar252, StairvilleLedPar56, REDSpot18RGB, ZhennbyPar, Entec6RGBW
|
||||
|
||||
room = ''
|
||||
|
||||
|
|
@ -56,7 +56,7 @@ def main(args):
|
|||
args = parser.parse_args(args)
|
||||
|
||||
print(f"Starting DMX via Art-Net to {args.artnet}", file=sys.stderr)
|
||||
dmx = DMX(args.artnet, maxchan=128, universe=args.universe)
|
||||
dmx = DMX(args.artnet, maxchan=512, universe=args.universe)
|
||||
|
||||
if args.room == "shop":
|
||||
dmx._rgbs = [
|
||||
|
|
@ -83,6 +83,8 @@ def main(args):
|
|||
ZhennbyPar(dmx, 15),
|
||||
ZhennbyPar(dmx, 22),
|
||||
]
|
||||
elif args.room == "defrag":
|
||||
dmx._rgbs = [Entec6RGBW(dmx, 300 + i*4) for i in range(19)]
|
||||
else:
|
||||
print(f"Unknown room {args.room}", file=sys.stderr)
|
||||
sys.exit(64)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue