Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 716 Bytes

examples.rst

File metadata and controls

27 lines (20 loc) · 716 Bytes

Simple test

Ensure your device works with this simple test.

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

Calibration Example

This advanced example can be used to compute a more precise reference_clock_speed. Use an oscilloscope or logic analyzer to measure the signal frequency and type the results into the prompts.

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

Servo Example

Example to show the library using a servo

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