Skip to content

Commit d5d36ea

Browse files
authored
Merge pull request #52 from jposada202020/memory_otimization
memory_optimization
2 parents d1a7d98 + 2b0af3c commit d5d36ea

File tree

8 files changed

+453
-225
lines changed

8 files changed

+453
-225
lines changed

README.rst

+2-11
Original file line numberDiff line numberDiff line change
@@ -61,20 +61,11 @@ Usage Example
6161
6262
import board
6363
import time
64-
import adafruit_bme280
64+
from adafruit_bme280 import basic
6565
6666
# Create sensor object, using the board's default I2C bus.
6767
i2c = board.I2C() # uses board.SCL and board.SDA
68-
bme280 = adafruit_bme280.Adafruit_BME280_I2C(i2c)
69-
#or with other sensor address
70-
#bme280 = adafruit_bme280.Adafruit_BME280_I2C(i2c, address=0x76)
71-
72-
# OR create sensor object, using the board's default SPI bus.
73-
# SPI setup
74-
# from digitalio import DigitalInOut
75-
#spi = board.SPI()
76-
#bme_cs = digitalio.DigitalInOut(board.D10)
77-
#bme280 = adafruit_bme280.Adafruit_BME280_SPI(spi, bme_cs)
68+
bme280 = basic.Adafruit_BME280_I2C(i2c)
7869
7970
# change this to match the location's pressure (hPa) at sea level
8071
bme280.sea_level_pressure = 1013.25

adafruit_bme280/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)