mirror of
https://gitlab1.ptb.de/waltem01/Matrix
synced 2024-12-25 11:31:46 +00:00
bugfix: include missing set color instruction
This commit is contained in:
parent
802084be76
commit
c6907466ef
@ -71,6 +71,11 @@ def instructions():
|
||||
x2 = int(ins['x2'])
|
||||
y2 = int(ins['y2'])
|
||||
matrix.line(x1, y1, x2, y2)
|
||||
elif ins['endpoint'] == 'color':
|
||||
r = int(ins['r'])
|
||||
g = int(ins['g'])
|
||||
b = int(ins['b'])
|
||||
matrix.set_color(r, g, b)
|
||||
elif ins['endpoint'] == 'clear':
|
||||
matrix.clear()
|
||||
elif ins['endpoint'] == 'update':
|
||||
|
Loading…
Reference in New Issue
Block a user