update examples

This commit is contained in:
caternuson 2020-04-20 14:51:58 -07:00
parent 1fd07a91db
commit bbcfe40081
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@ import busio
import adafruit_bno055 import adafruit_bno055
i2c = busio.I2C(board.SCL, board.SDA) i2c = busio.I2C(board.SCL, board.SDA)
sensor = adafruit_bno055.BNO055(i2c) sensor = adafruit_bno055.BNO055_I2C(i2c)
while True: while True:
print("Temperature: {} degrees C".format(sensor.temperature)) print("Temperature: {} degrees C".format(sensor.temperature))

View file

@ -40,7 +40,7 @@ import adafruit_bno055
i2c = busio.I2C(board.SCL, board.SDA) i2c = busio.I2C(board.SCL, board.SDA)
# Create the BNO sensor connection. # Create the BNO sensor connection.
bno = adafruit_bno055.BNO055(i2c) bno = adafruit_bno055.BNO055_I2C(i2c)
# Application configuration below. You probably don't need to change these values. # Application configuration below. You probably don't need to change these values.