started development on SMBus sensors

This commit is contained in:
d3m1g0d
2019-02-20 18:39:34 +01:00
parent cfa9c8ea23
commit 59af6587e7
3 changed files with 6 additions and 2 deletions

1
sensor_docs/sysprep.md Normal file
View File

@@ -0,0 +1 @@
# sysprep - How to prepare a Raspberry Pi 3 B+ to run TeraHz

View File

@@ -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)

4
utils/smbus-test.py Normal file
View File

@@ -0,0 +1,4 @@
import smbus
bus = smbus.SMBus(1)
print(bus.read_word_data(0x10, 0x07))