update examples
This commit is contained in:
parent
1fd07a91db
commit
bbcfe40081
2 changed files with 2 additions and 2 deletions
|
|
@ -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))
|
||||||
|
|
|
||||||
|
|
@ -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.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue