adafruit / adafruit/Adafruit_CircuitPython_BNO08x

Has SPI mode been tested?

Open
#37 15 comments 5 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
41
Forks
45
PR merge metrics
No merged PRs in 30d

Description

Re this thread:
https://forums.adafruit.com/viewtopic.php?p=946036#p946036

The guide currently does not cover SPI usage.
https://learn.adafruit.com/adafruit-9-dof-orientation-imu-fusion-breakout-bno085/python-circuitpython

The library example has some code that looks copy-pasta'd (D9 ref'd twice, reset pin set as input) and the instantiation does not match the actual [ctor](https://github.com/adafruit/Adafruit_CircuitPython_BNO08x/blob/c8c7cf01199c658db83e00266f84bb13eb3bab99/adafruit_bno08x/i2c.py#L24):
https://github.com/adafruit/Adafruit_CircuitPython_BNO08x/blob/c8c7cf01199c658db83e00266f84bb13eb3bab99/examples/bno08x_simpletest_spi.py#L19-L25

Additionally, there does not appear to be any code in place to perform the required PS0/Wake pin assertion needed for SPI transactions:
![image](https://user-images.githubusercontent.com/8755041/198698064-c50c4dfc-4b8a-4827-8a25-02b10a363813.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with examples/bno08x_simpletest_spi.py and compare its constructor usage with adafruit_bno08x/i2c.py. Review the linked forum thread and SPI pin requirements, then check the Python/CircuitPython guide. Done means the SPI example and required PS0/Wake handling are validated and the guide accurately covers SPI usage.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
documentation, embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.