13
13
14
14
**Hardware:**
15
15
16
- * `Adafruit BNO08x Breakout <https:www.adafruit.com/products/4754>`_
16
+ * `Adafruit 9-DOF Orientation IMU Fusion Breakout - BNO085 (BNO080)
17
+ <https://www.adafruit.com/product/4754>`_ (Product ID: 4754)
18
+
17
19
18
20
**Software and Dependencies:**
19
21
20
22
* Adafruit CircuitPython firmware for the supported boards:
21
- https://github.com/adafruit/circuitpython/releases
23
+ https://circuitpython.org/downloads
22
24
23
25
"""
24
26
import time
@@ -33,7 +35,38 @@ class RVCReadTimeoutError(Exception):
33
35
34
36
35
37
class BNO08x_RVC :
36
- """A simple class for reading heading from the BNO08x IMUs using the UART-RVC mode"""
38
+ """A simple class for reading heading from the BNO08x IMUs using the UART-RVC mode
39
+
40
+ :param uart: The UART device the BNO08x_RVC is connected to.
41
+ :param float timeout: time to wait for readings. Defaults to :const:`1.0`
42
+
43
+
44
+ **Quickstart: Importing and using the device**
45
+
46
+ Here is an example of using the :class:`BNO08X_UART` class.
47
+ First you will need to import the libraries to use the sensor
48
+
49
+ .. code-block:: python
50
+
51
+ import board
52
+ import busio
53
+ from adafruit_bno08x_rvc import BNO08x_RVC
54
+
55
+ Once this is done you can define your `busio.UART` object and define your sensor object
56
+
57
+ .. code-block:: python
58
+
59
+ uart = busio.UART(board.TX, board.RX, baudrate=3000000, receiver_buffer_size=2048)
60
+ rvc = BNO08X_UART(uart)
61
+
62
+
63
+ Now you have access to the :attr:`heading` attribute
64
+
65
+ .. code-block:: python
66
+
67
+ yaw, pitch, roll, x_accel, y_accel, z_accel = rvc.heading
68
+
69
+ """
37
70
38
71
def __init__ (self , uart , timeout = 1.0 ):
39
72
self ._uart = uart
0 commit comments