Compare commits

...

3 commits

Author SHA1 Message Date
c0beac0132 debug testing 2020-11-10 19:16:32 -05:00
12e7dda646 Merge branch 'master' of ssh.gitdab.com:jane/leds 2020-11-10 19:15:33 -05:00
86ce88832d t 2020-11-10 19:15:29 -05:00

View file

@ -14,6 +14,9 @@ this.values = {
"stack4": 0,
"stack5": 0,
"stack6": 0,
"stackr": 0,
"stackg": 0,
"stackb": 0,
"r": 0,
"g": 0,
"b": 0,
@ -68,14 +71,15 @@ def jez(target, arg, index):
def _apply(index, target, arg, func):
if type(arg) is int:
print("{} {} {}".format(func, target, arg))
return func(target, arg, index)
elif type(arg) is str and arg in this.values:
print("{} {} {}".format(func, target, this.values[arg]))
return func(target, this.values[arg], index)
def apply(index, targets, args, func):
for target in range(len(targets)):
print("{} {} {}".format(func, targets[target]['channel'], args[target]))
if this.values[targets[target]['channel']] != None:
if target < len(args):
val, jump = _apply(