Skip to content

Commit

Permalink
Merge pull request #72 from jposada202020/updating_examples
Browse files Browse the repository at this point in the history
addding_examples small change in the api.rst (spacing)
  • Loading branch information
tekktrik authored Feb 7, 2023
2 parents 4c36fa4 + b5bda1a commit 9c3de3a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
:members:

.. automodule:: adafruit_motor.servo
:members:
:members:

.. automodule:: adafruit_motor.stepper
:members:
:members:
21 changes: 21 additions & 0 deletions docs/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,39 @@ Ensure your device works with this simple test.
:caption: examples/motor_servo_sweep_simpletest.py
:linenos:

Motor PCA9685 DC Motor
------------------------

This example uses an Adafruit Stepper and DC Motor FeatherWing to run a DC Motor

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

Motor PCA9685 Stepper Motor
---------------------------

This example uses an Adafruit Stepper and DC Motor FeatherWing to run a Stepper Motor.


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

Motor Servo Sweep
--------------------

Show the servo sweep capabilities

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

Motor PCA9685 Continuous Motor
------------------------------

Show an example with a continuous motor

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

0 comments on commit 9c3de3a

Please sign in to comment.