Skip to content

Commit b9ea15d

Browse files
committed
Removed busio reference from simpletest example
1 parent e1c8114 commit b9ea15d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/sgp40_simpletest.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33
# SPDX-License-Identifier: Unlicense
44
import time
55
import board
6-
import busio
76
import adafruit_sgp40
87

98
# If you have a temperature sensor, like the bme280, import that here as well
109
# import adafruit_bme280
1110

12-
i2c = busio.I2C(board.SCL, board.SDA)
11+
i2c = board.I2C() # uses board.SCL and board.SDA
1312
sgp = adafruit_sgp40.SGP40(i2c)
1413
# And if you have a temp/humidity sensor, define the sensor here as well
1514
# bme280 = adafruit_bme280.Adafruit_BME280_I2C(i2c)

0 commit comments

Comments
 (0)