mirror of
https://github.com/brendanhaines/ECEN5458_Project.git
synced 2024-11-09 21:14:47 -07:00
WIP: hopefully update data periodically
This commit is contained in:
parent
ad10fbc097
commit
1e0fd3ec3f
|
@ -7,6 +7,7 @@ import digitalio
|
||||||
from adafruit_servokit import ServoKit
|
from adafruit_servokit import ServoKit
|
||||||
import adafruit_ads1x15.ads1015 as ADS
|
import adafruit_ads1x15.ads1015 as ADS
|
||||||
from adafruit_ads1x15.analog_in import AnalogIn
|
from adafruit_ads1x15.analog_in import AnalogIn
|
||||||
|
import threading
|
||||||
|
|
||||||
from bokeh.io import curdoc
|
from bokeh.io import curdoc
|
||||||
from bokeh.layouts import column, row
|
from bokeh.layouts import column, row
|
||||||
|
@ -81,9 +82,11 @@ curdoc().add_root(row(controls, plot, width=800))
|
||||||
# curdoc().add_root(row(plot, width=800))
|
# curdoc().add_root(row(plot, width=800))
|
||||||
curdoc().title = "test"
|
curdoc().title = "test"
|
||||||
|
|
||||||
while True:
|
t = threading.timer(0.5,update_data)
|
||||||
time.sleep(0.1)
|
t.start()
|
||||||
update_data()
|
# while True:
|
||||||
|
# time.sleep(0.1)
|
||||||
|
# update_data()
|
||||||
|
|
||||||
|
|
||||||
# servos = ServoKit(channels=16).continuous_servo
|
# servos = ServoKit(channels=16).continuous_servo
|
||||||
|
|
Loading…
Reference in New Issue
Block a user