Skip to content

[Breaking Changes] Removed deprecated properties, changed behavior of disabled properties

Compare
Choose a tag to compare
@evaherrada evaherrada released this 20 Oct 02:04
e43b1a2

NOTE: This release has breaking changes

Breaking changes:

  • accelerometer property has been removed, the equivalent non-deprecated property is acceleration.
  • magnetometer property has been removed, the equivalent non-deprecated property is magnetic.
  • gyroscope property has been removed, the equivalent non-deprecated property is gyro.

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.