We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83a2b1c commit f750d88Copy full SHA for f750d88
examples/bno055_i2c-gpio_simpletest.py
@@ -1,10 +1,19 @@
1
+"""
2
+This example demonstrates how to instantiate the
3
+Adafruit BNO055 Sensor using this library and just
4
+the I2C bus number.
5
+This example will only work on a Raspberry Pi
6
+and does require the i2c-gpio kernel module to be
7
+installed and enabled. Most Raspberry Pis will
8
+already have it installed.
9
10
+
11
import time
-import board
12
from adafruit_extended_bus import ExtendedI2C as I2C
13
import adafruit_bno055
14
15
# Create library object using our Extended Bus I2C port
-i2c = I2C(1) # Device is /dev/i2c-1
16
+i2c = I2C(1) # Device is /dev/i2c-1
17
sensor = adafruit_bno055.BNO055_I2C(i2c)
18
19
while True:
0 commit comments