diff --git a/API/main.py b/API/main.py index cf791fe..1d8df41 100755 --- a/API/main.py +++ b/API/main.py @@ -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':