If you wish to use UART, you can enable the UART mode by pulling the P1 pin high and connecting the sensor to your
RX and TX pins:
Pi 3V3 to sensor VIN (red wire)
Pi GND to sensor GND (black
wire)
Pi TX to sensor SCL (yellow wire)
Pi RX to sensor SDA (blue wire)
Pi 3V3 to sensor P1 (purple wire)
CircuitPython Installation of BNO08x Library
You'll need to install the Adafruit CircuitPython BNO08x (https://adafru.it/N-F) library on your CircuitPython board.
First make sure you are running the latest version of Adafruit CircuitPython (https://adafru.it/Amd) for your board.
Next you'll need to install the necessary libraries to use the hardware--carefully follow the steps to find and install these
libraries from Adafruit's CircuitPython library bundle (https://adafru.it/ENC). Our CircuitPython starter guide has a great
page on how to install the library bundle (https://adafru.it/ABU).
Before continuing make sure your board's lib folder or root filesystem has the adafruit_BNO08x.mpy file and
adafruit_bus_device folder copied over.
Next connect to the board's serial REPL (https://adafru.it/Awz)so you are at the CircuitPython >>> prompt.
Python Installation of BNO08x Library
You'll need to install the Adafruit_Blinka library that provides the CircuitPython support in Python. This may also
require enabling I2C on your platform and verifying you are running Python 3. Since each platform is a little different,
and Linux changes often, please visit the CircuitPython on Linux guide to get your computer
ready (https://adafru.it/BSN)!
Once that's done, from your command line run the following command:
sudo pip3 install adafruit-circuitpython-bno08x
If your default Python is version 3 you may need to run 'pip' instead. Just make sure you aren't trying to use
CircuitPython on Python 2.x, it isn't supported!
CircuitPython & Python Usage
The examples below show an I2C connection displaying the Rotation Vector (Quaternion) report however
there are many more that can be enabled. See the Report Types page for more information on the available
reports