From 5ab95f269658349e49f4b735c714792ba4f6f0d6 Mon Sep 17 00:00:00 2001 From: Brendan Haines Date: Mon, 2 Mar 2020 16:35:13 -0700 Subject: [PATCH] WIP maybe this will update automatically --- Software/python/hwtest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Software/python/hwtest.py b/Software/python/hwtest.py index e6c7736..7acdf77 100644 --- a/Software/python/hwtest.py +++ b/Software/python/hwtest.py @@ -88,7 +88,7 @@ cal_black_button.on_click(cal_black) update_button = Button(label="Update Plot") update_button.on_click(update_plot) -controls = column(cal_white_button, cal_black_button) +controls = column(cal_white_button, cal_black_button, update_button) curdoc().add_root(row(controls, plot, width=800)) curdoc().title = "TriangleBot Control Panel" @@ -107,7 +107,7 @@ def control_thread(): if ii == 10: ii = 0 if ii == 0: - plt_data['y'] = brightness + update_plot() t = threading.Thread(target=control_thread)