Max31865 is ATemperatureSensor

git-svn-id: http://moon:8086/svn/projects/HendiControl@194 fda53097-d464-4ada-af97-ba876c37ca34
This commit is contained in:
2019-03-31 07:01:59 +00:00
parent 0f294bb56e
commit dde888e812
+2 -2
View File
@@ -2,7 +2,7 @@ import time
import numpy as np import numpy as np
from matplotlib.pyplot import figure, clf, plot, xlabel, ylabel, xlim, ylim, title, grid, axes, show, subplot from matplotlib.pyplot import figure, clf, plot, xlabel, ylabel, xlim, ylim, title, grid, axes, show, subplot
from tempSensorSim import TempSensorSim from max31865 import Max31865
class TempLogger(): class TempLogger():
def __init__(self, sensor): def __init__(self, sensor):
@@ -28,7 +28,7 @@ class TempLogger():
if __name__ == '__main__': if __name__ == '__main__':
sensor = TempSensorSim("FakeTemp") sensor = Max31865()
logger = TempLogger(sensor) logger = TempLogger(sensor)
result = logger.run(1, 10) result = logger.run(1, 10)