diff --git a/API/main.py b/API/main.py index 67126c8..64c47bd 100644 --- a/API/main.py +++ b/API/main.py @@ -99,6 +99,19 @@ def set_color(): return jsonify(response) +@api.route('/clear', methods=['GET']) +def update_matrix(): + response = { 'success': True } + + try: + global matrix + matrix.clear() + except Exception as e: + print(e) + response['success'] = False + + return jsonify(response) + @api.route('/update', methods=['GET']) def update_matrix(): response = { 'success': True }