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 f750d88 commit 2b358f2Copy full SHA for 2b358f2
examples/bno055_i2c-gpio_simpletest.py
@@ -5,14 +5,19 @@
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.
+already have it installed, however most do not
9
+have it enabled. You will have to manually enable it
10
"""
11
12
import time
13
from adafruit_extended_bus import ExtendedI2C as I2C
14
import adafruit_bno055
15
16
+# To enable i2c-gpio, add the line `dtoverlay=i2c-gpio` to /boot/config.txt
17
+# Then reboot the pi
18
+
19
# Create library object using our Extended Bus I2C port
20
+# Use `ls /dev/i2c*` to find out what i2c devices are connected
21
i2c = I2C(1) # Device is /dev/i2c-1
22
sensor = adafruit_bno055.BNO055_I2C(i2c)
23
0 commit comments