This is the documentation for the latest development branch of MicroPython and may refer to features that are not available in released versions.

If you are looking for the documentation for a specific release, use the drop-down menu on the left and select the desired version.

pyb.Accel

Classes

Accel

Create and return an accelerometer object.

Module Contents

class pyb.Accel.Accel

Create and return an accelerometer object.

filtered_xyz() Tuple

Get a 3-tuple of filtered x, y and z values.

Implementation note: this method is currently implemented as taking the sum of 4 samples, sampled from the 3 previous calls to this function along with the sample from the current call. Returned values are therefore 4 times the size of what they would be from the raw x(), y() and z() calls.

tilt() Incomplete

Get the tilt register.

x() Incomplete

Get the x-axis value.

y() Incomplete

Get the y-axis value.

z() Incomplete

Get the z-axis value.