Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
orangecms committed Feb 20, 2021
1 parent b2b4590 commit d24e72f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/sensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
import sys
import threading
import time
from PSL.SENSORS.SHT21 import SHT21
from pslab.external import SHT21
from pslab.bus import i2c

class Sensors:
def __init__(self, I, file_write):
Expand Down Expand Up @@ -43,7 +44,8 @@ def read(self):
datetime_data = datetime.datetime.now()
timestamp = time.time()

sensor = SHT21(self.device.I2C)
# FIXME!
sensor = SHT21(self.device.i2c)
data = sensor.getRaw()

self.file_write.update_buffer(
Expand Down

0 comments on commit d24e72f

Please sign in to comment.