We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1c8114 commit b9ea15dCopy full SHA for b9ea15d
examples/sgp40_simpletest.py
@@ -3,13 +3,12 @@
3
# SPDX-License-Identifier: Unlicense
4
import time
5
import board
6
-import busio
7
import adafruit_sgp40
8
9
# If you have a temperature sensor, like the bme280, import that here as well
10
# import adafruit_bme280
11
12
-i2c = busio.I2C(board.SCL, board.SDA)
+i2c = board.I2C() # uses board.SCL and board.SDA
13
sgp = adafruit_sgp40.SGP40(i2c)
14
# And if you have a temp/humidity sensor, define the sensor here as well
15
# bme280 = adafruit_bme280.Adafruit_BME280_I2C(i2c)
0 commit comments