bugfix: include missing set color instruction

This commit is contained in:
waltem01 2024-03-15 08:01:53 +01:00
parent 802084be76
commit c6907466ef

View File

@ -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':