mirror of
https://github.com/brendanhaines/ECEN5458_Project.git
synced 2024-11-09 21:14:47 -07:00
WIP maybe this will update automatically
This commit is contained in:
parent
23463ceed8
commit
5ab95f2696
|
@ -88,7 +88,7 @@ cal_black_button.on_click(cal_black)
|
||||||
update_button = Button(label="Update Plot")
|
update_button = Button(label="Update Plot")
|
||||||
update_button.on_click(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().add_root(row(controls, plot, width=800))
|
||||||
curdoc().title = "TriangleBot Control Panel"
|
curdoc().title = "TriangleBot Control Panel"
|
||||||
|
@ -107,7 +107,7 @@ def control_thread():
|
||||||
if ii == 10:
|
if ii == 10:
|
||||||
ii = 0
|
ii = 0
|
||||||
if ii == 0:
|
if ii == 0:
|
||||||
plt_data['y'] = brightness
|
update_plot()
|
||||||
|
|
||||||
|
|
||||||
t = threading.Thread(target=control_thread)
|
t = threading.Thread(target=control_thread)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user