Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
*.pyc
*.swp

.idea/
4 changes: 2 additions & 2 deletions sgp30/sgp30.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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()
Expand Down