Skip to content

Commit d879b1c

Browse files
committed
wip
1 parent c7b4f8c commit d879b1c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/sensors.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
import sys
44
import threading
55
import time
6-
from PSL.SENSORS.SHT21 import SHT21
6+
from pslab.external import SHT21
7+
from pslab.bus import i2c
78

89
class Sensors:
910
def __init__(self, I, file_write):
@@ -43,7 +44,8 @@ def read(self):
4344
datetime_data = datetime.datetime.now()
4445
timestamp = time.time()
4546

46-
sensor = SHT21(self.device.I2C)
47+
# FIXME!
48+
sensor = SHT21(self.device.i2c)
4749
data = sensor.getRaw()
4850

4951
self.file_write.update_buffer(

0 commit comments

Comments
 (0)