Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 928 Bytes

examples.rst

File metadata and controls

37 lines (26 loc) · 928 Bytes

Simple test

Ensure your device works with this simple test.

.. literalinclude:: ../examples/mpu6050_simpletest.py
    :caption: examples/mpu6050_simpletest.py
    :linenos:

Plotter Example

See the effects of changing the gyroscope and accelerometer range by viewing the data in a serial plotter

.. literalinclude:: ../examples/mpu6050_plotter_example.py
    :caption: examples/mpu6050_plotter_example.py
    :linenos:

Sleep Example

Observe how the cycle and sleep modes effect measurements by viewing the data in a serial plotter

.. literalinclude:: ../examples/mpu6050_sleep_example.py
    :caption: examples/mpu6050_sleep_example.py
    :linenos:

Inclinometer Example

Provides an example on how to use the sensor as an inclinometer

.. literalinclude:: ../examples/mpu6050_inclinometer.py
    :caption: examples/mpu6050_inclinometer.py
    :linenos: