diff --git a/.gitignore b/.gitignore index c9b568f..9bb379e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ *.pyc *.swp + +.idea/ diff --git a/sgp30/sgp30.py b/sgp30/sgp30.py index 601763a..e5b9092 100644 --- a/sgp30/sgp30.py +++ b/sgp30/sgp30.py @@ -1,5 +1,5 @@ import smbus2 -from smbus2 import SMBusWrapper, SMBus, i2c_msg +from smbus2 import SMBus, i2c_msg from collections import namedtuple from functools import partial from time import sleep, asctime,time @@ -116,7 +116,7 @@ def i2c_geral_call(self): def main(): - with SMBusWrapper(1) as bus: + with SMBus(1) as bus: sgp=Sgp30(bus,baseline_filename=BASELINE_FILENAME+".TESTING") print("resetting all i2c devices") sgp.i2c_geral_call()