diff --git a/script/Bmp6TimeScan.py b/script/Bmp6TimeScan.py new file mode 100644 index 0000000..7b9ae76 --- /dev/null +++ b/script/Bmp6TimeScan.py @@ -0,0 +1,19 @@ + +rel_x = pico_bpm6_new_x.read() + +class XAxis(ReadableArray): + def read(self): + start = pico_bpm6_new.getTimestamp() + #return to_array([x + start for x in rel_x], 'd') + return [x + start for x in rel_x] + + def getSize(self): + return len(rel_x) #only reads if cache is None + +x_axis = XAxis() + + + +setup_plotting(line_plots = [pico_bpm6_new, x_axis]) + +tscan([pico_bpm6_new, x_axis], 10, 0.5)