Skip to content

Commit 183e7b4

Browse files
authored
Merge pull request #69 from rwmanos/patch-1
Improve SPI commented examples
2 parents 0baf6d0 + 1b46222 commit 183e7b4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

examples/bme280_normal_mode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
# OR create sensor object, using the board's default SPI bus.
1919
# SPI setup
20-
# from digitalio import DigitalInOut
20+
# import digitalio
2121
# spi = board.SPI()
2222
# bme_cs = digitalio.DigitalInOut(board.D10)
2323
# bme280 = adafruit_bme280.Adafruit_BME280_SPI(spi, bme_cs)

examples/bme280_simpletest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
bme280 = adafruit_bme280.Adafruit_BME280_I2C(i2c)
1212

1313
# OR create sensor object, using the board's default SPI bus.
14+
# import digitalio
1415
# spi = board.SPI()
1516
# bme_cs = digitalio.DigitalInOut(board.D10)
1617
# bme280 = adafruit_bme280.Adafruit_BME280_SPI(spi, bme_cs)

0 commit comments

Comments
 (0)