Skip to content

Commit f750d88

Browse files
author
ladyada
committed
Formatting
1 parent 83a2b1c commit f750d88

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

examples/bno055_i2c-gpio_simpletest.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
111
import time
2-
import board
312
from adafruit_extended_bus import ExtendedI2C as I2C
413
import adafruit_bno055
514

615
# Create library object using our Extended Bus I2C port
7-
i2c = I2C(1) # Device is /dev/i2c-1
16+
i2c = I2C(1) # Device is /dev/i2c-1
817
sensor = adafruit_bno055.BNO055_I2C(i2c)
918

1019
while True:

0 commit comments

Comments
 (0)