Skip to content

Commit

Permalink
docs: Fix value range for accelerometer.set_range() (#764)
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-carlos committed Aug 31, 2022
1 parent 1435b6a commit f955e8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/accelerometer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This object gives you access to the on-board accelerometer.

By default MicroPython sets the accelerometer range to +/- 2000 mg (``g`` being
a unit of acceleration based on the standard gravity), which configures the
maximum and minimum values returned by the acceleromter functions.
maximum and minimum values returned by the accelerometer functions.
The range can be changed via :func:`microbit.accelerometer.set_range`.

The accelerometer also provides convenience functions for detecting gestures.
Expand Down Expand Up @@ -78,7 +78,7 @@ Functions
.. py:function:: set_range(value)
Set the accelerometer sensitivity range, in g (standard gravity), to the
closest values supported by the hardware, so it rounds to either ``1``,
closest values supported by the hardware, so it rounds to either
``2``, ``4``, or ``8`` g.

:param value: New range for the accelerometer, an integer in ``g``.
Expand Down

0 comments on commit f955e8a

Please sign in to comment.