[Breaking Changes] Removed deprecated properties, changed behavior of disabled properties
NOTE: This release has breaking changes
Breaking changes:
accelerometerproperty has been removed, the equivalent non-deprecated property isacceleration.magnetometerproperty has been removed, the equivalent non-deprecated property ismagnetic.gyroscopeproperty 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
Noneinstead 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.