Skip to content

Commit 2b358f2

Browse files
committed
Added better docs
1 parent f750d88 commit 2b358f2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

examples/bno055_i2c-gpio_simpletest.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,19 @@
55
This example will only work on a Raspberry Pi
66
and does require the i2c-gpio kernel module to be
77
installed and enabled. Most Raspberry Pis will
8-
already have it installed.
8+
already have it installed, however most do not
9+
have it enabled. You will have to manually enable it
910
"""
1011

1112
import time
1213
from adafruit_extended_bus import ExtendedI2C as I2C
1314
import adafruit_bno055
1415

16+
# To enable i2c-gpio, add the line `dtoverlay=i2c-gpio` to /boot/config.txt
17+
# Then reboot the pi
18+
1519
# Create library object using our Extended Bus I2C port
20+
# Use `ls /dev/i2c*` to find out what i2c devices are connected
1621
i2c = I2C(1) # Device is /dev/i2c-1
1722
sensor = adafruit_bno055.BNO055_I2C(i2c)
1823

0 commit comments

Comments
 (0)