Skip to content

Commit d927495

Browse files
committed
improving_docs
1 parent bad41a4 commit d927495

File tree

6 files changed

+10
-8
lines changed

6 files changed

+10
-8
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Usage Example
6464
import board
6565
import adafruit_bno08x
6666
67-
i2c = board.I2C()
67+
i2c = board.I2C() # uses board.SCL and board.SDA
6868
bno = adafruit_bno08x.BNO08X(i2c)
6969
7070
while True:

adafruit_bno08x/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,17 @@
1616
1717
**Hardware:**
1818
19-
* Adafruit `BNO08x Breakout <https:www.adafruit.com/products/4754>`_
19+
* `Adafruit 9-DOF Orientation IMU Fusion Breakout
20+
<https:www.adafruit.com/products/4754>`_ (Product ID: 4566)
2021
2122
**Software and Dependencies:**
2223
2324
* Adafruit CircuitPython firmware for the supported boards:
2425
https://circuitpython.org/downloads
2526
26-
* Adafruit's Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
27+
* Adafruit's Bus Device library:
28+
https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
29+
2730
"""
2831
__version__ = "0.0.0-auto.0"
2932
__repo__ = "https:# github.com/adafruit/Adafruit_CircuitPython_BNO08x.git"

adafruit_bno08x/i2c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class BNO08X_I2C(BNO08X):
3737
.. code-block:: python
3838
3939
# The sensor can communicate over I2C at 400kHz if you need the higher speed.
40-
i2c = board.I2C()
40+
i2c = board.I2C() # uses board.SCL and board.SDA
4141
bno = BNO08X_I2C(i2c)
4242
4343
For this particular you need to define some things to get some data.

examples/bno08x_calibration.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
# SPDX-License-Identifier: Unlicense
44
import time
55
import board
6-
import busio
76
from digitalio import DigitalInOut
87
import adafruit_bno08x
98
from adafruit_bno08x.i2c import BNO08X_I2C
109

11-
i2c = busio.I2C(board.SCL, board.SDA)
10+
i2c = board.I2C() # uses board.SCL and board.SDA
1211
reset_pin = DigitalInOut(board.D5)
1312
bno = BNO08X_I2C(i2c, reset=reset_pin, debug=False)
1413

examples/bno08x_quaternion_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from adafruit_ble_adafruit.quaternion_service import QuaternionService
99
from adafruit_bno08x import BNO08X
1010

11-
i2c = board.I2C()
11+
i2c = board.I2C() # uses board.SCL and board.SDA
1212
bno = BNO08X(i2c)
1313

1414
quat_svc = QuaternionService()

examples/bno08x_simpletest_spi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from adafruit_bno08x.spi import BNO08X_SPI
88

99
# need to limit clock to 3MHz
10-
spi = board.SPI()
10+
i2c = board.I2C() # uses board.SCL and board.SDA
1111

1212
cs = DigitalInOut(board.D5)
1313
cs.direction = Direction.OUTPUT

0 commit comments

Comments
 (0)