From b5bda1a7b2508dbdbf5c537226314d4fb63fe6a2 Mon Sep 17 00:00:00 2001 From: jposada202020 Date: Mon, 6 Feb 2023 14:21:35 -0500 Subject: [PATCH] addding_examples small change in the api.rst (spacing) --- docs/api.rst | 4 ++-- docs/examples.rst | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/docs/api.rst b/docs/api.rst index fbbb10e..dae87a1 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -5,7 +5,7 @@ :members: .. automodule:: adafruit_motor.servo - :members: + :members: .. automodule:: adafruit_motor.stepper - :members: + :members: diff --git a/docs/examples.rst b/docs/examples.rst index 0b1dc8c..99dec76 100644 --- a/docs/examples.rst +++ b/docs/examples.rst @@ -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: