diff --git a/sensor_docs/sysprep.md b/sensor_docs/sysprep.md new file mode 100644 index 0000000..631e85e --- /dev/null +++ b/sensor_docs/sysprep.md @@ -0,0 +1 @@ +# sysprep - How to prepare a Raspberry Pi 3 B+ to run TeraHz diff --git a/utils/getcdata.py b/utils/getcdata.py index c6870d9..49741f2 100644 --- a/utils/getcdata.py +++ b/utils/getcdata.py @@ -1,7 +1,6 @@ # getcdata.py - fetch the calibrated data from the AS7265x module # this program is 3-clause BSD license import serial as ser -from parse import * import pandas as pd import numpy as np import matplotlib.pyplot as plt @@ -42,4 +41,4 @@ with ser.Serial(uartpath, uartbaud, timeout=uarttout) as sensor: spectrum.set_ylabel('uW/cm2') win.canvas.draw() - time.sleep(1) + time.sleep(0.1) diff --git a/utils/smbus-test.py b/utils/smbus-test.py new file mode 100644 index 0000000..bb33aa8 --- /dev/null +++ b/utils/smbus-test.py @@ -0,0 +1,4 @@ +import smbus + +bus = smbus.SMBus(1) +print(bus.read_word_data(0x10, 0x07))