Jump to content

microbit.accelerometer.setRange

From Compy Docs

Attempts to set the sample range of the accelerometer’s readings, in G. If the requested range is not available on the hardware, the next lowest possible range will be selected.

Function

Synopsis

microbit.accelerometer.setRange(range)

Arguments

  • `range` — The new range (in G) of samples.

Returns

A boolean value. True on success.

See Also