Skip to content

Commit

Permalink
docs: Document new accelerometer.get_strength() method.
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgeorge committed Sep 10, 2021
1 parent 1471254 commit 83498fa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/accelerometer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ Functions
By default the accelerometer is configured with a range of +/- 2g, and so
X, Y, and Z will be within the range of +/-2000mg.

.. py:function:: get_strength()
Get the acceleration measurement of all axes combined, as a positive
integer. This is the Pythagorean sum of the X, Y and Z axes, with the
measurement given in milli-g.

.. py:function:: current_gesture()
Return the name of the current gesture.
Expand Down

0 comments on commit 83498fa

Please sign in to comment.