[Breaking Changes] Removed deprecated properties, changed behavior of disabled properties
NOTE: This release has breaking changes
Breaking changes:
accelerometer
property has been removed, the equivalent non-deprecated property isacceleration
.magnetometer
property has been removed, the equivalent non-deprecated property ismagnetic
.gyroscope
property has been removed, the equivalent non-deprecated property isgyro
.
Non-breaking changes:
- If a property is disabled by putting it in a mode that it is disabled in, it will now return a tuple filled with
None
instead of a tuple filled with zeroes
Old behavior:
>>> sensor.mode = bno055.ACCONLY_MODE #everything other than acceleration is disabled
>>> print(sensor.gyro)
(0, 0, 0)
New Behavior:
>>> sensor.mode = bno055.ACCONLY_MODE
>>> print(sensor.gyro)
(None, None, None)
To use in CircuitPython, simply install the Adafruit CircuitPython bundle.
To use in CPython, pip3 install adafruit-circuitpython-bno055
.
Read the docs for info on how to use it.