Skip to content

Commit 2759193

Browse files
committed
Improve the docs.
1 parent 5dd159e commit 2759193

File tree

4 files changed

+17
-14
lines changed

4 files changed

+17
-14
lines changed

README.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ Introduction
1313
This helper library provides higher level objects to control motors and servos based on one or more
1414
PWM outputs.
1515

16+
The PWM inputs can be any object that have a 16-bit ``duty_cycle`` attribute. Its assumed that the
17+
frequency has already been configured appropriately. (Typically 50hz for servos and 1600hz for
18+
motors.)
19+
1620
Dependencies
1721
=============
1822
This driver depends on:
@@ -23,11 +27,6 @@ Please ensure all dependencies are available on the CircuitPython filesystem.
2327
This is easily achieved by downloading
2428
`the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle>`_.
2529

26-
Usage Example
27-
=============
28-
29-
TODO
30-
3130
API Reference
3231
=============
3332

adafruit_motor/motor.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@
2626
Simple control of a DC motor. DC motors have two wires and should not be connected directly to
2727
the PWM connections. Instead use intermediate circuitry to control a much stronger power source with
2828
the PWM. The `Adafruit Stepper + DC Motor FeatherWing <https://www.adafruit.com/product/2927>`_,
29-
`Adafruit TB6612 1.2A DC/Stepper Motor Driver Breakout Board <>`_ and `Adafruit Motor/Stepper/Servo
30-
Shield for Arduino v2 Kit - v2.3 <https://www.adafruit.com/product/1438>`_ do this for popular form
29+
`Adafruit TB6612 1.2A DC/Stepper Motor Driver Breakout Board
30+
<https://www.adafruit.com/product/2448>`_ and `Adafruit Motor/Stepper/Servo Shield for Arduino v2
31+
Kit - v2.3 <https://www.adafruit.com/product/1438>`_ do this for popular form
3132
factors already.
3233
3334
.. note:: The TB6612 boards feature three inputs XIN1, XIN2 and PWMX. Since we PWM the INs directly

adafruit_motor/stepper.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@
2323
`adafruit_motor.stepper`
2424
====================================================
2525
26-
TODO(description)
26+
Stepper motors feature multiple wire coils that are used to rotate the magnets connected to the
27+
motor shaft in a precise way. Each increment of the motor is called a step. Stepper motors have a
28+
varying number of steps per rotation so check the motor's documentation to determine exactly how
29+
precise each step is.
2730
2831
* Author(s): Tony DiCola, Scott Shawcroft
2932
"""
@@ -57,13 +60,13 @@
5760
class StepperMotor:
5861
"""A bipolar stepper motor or four coil unipolar motor.
5962
60-
:param ~pulseio.PWMOut ain1: `PWMOut`-compatible output connected to the driver for the first
63+
:param ~pulseio.PWMOut ain1: `pulseio.PWMOut`-compatible output connected to the driver for the first
6164
coil (unipolar) or first input to first coil (bipolar).
62-
:param ~pulseio.PWMOut ain2: `PWMOut`-compatible output connected to the driver for the third
65+
:param ~pulseio.PWMOut ain2: `pulseio.PWMOut`-compatible output connected to the driver for the third
6366
coil (unipolar) or second input to first coil (bipolar).
64-
:param ~pulseio.PWMOut bin1: `PWMOut`-compatible output connected to the driver for the second
67+
:param ~pulseio.PWMOut bin1: `pulseio.PWMOut`-compatible output connected to the driver for the second
6568
coil (unipolar) or second input to second coil (bipolar).
66-
:param ~pulseio.PWMOut bin2: `PWMOut`-compatible output connected to the driver for the fourth
69+
:param ~pulseio.PWMOut bin2: `pulseio.PWMOut`-compatible output connected to the driver for the fourth
6770
coil (unipolar) or second input to second coil (bipolar).
6871
:param int microsteps: Number of microsteps between full steps. Must be at least 2 and even.
6972
"""

conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# Uncomment the below if you use native CircuitPython modules such as
1919
# digitalio, micropython and busio. List the modules you use. Without it, the
2020
# autodoc module docs will fail to generate with a warning.
21-
# autodoc_mock_imports = ["digitalio", "busio"]
21+
autodoc_mock_imports = ["micropython"]
2222

2323
intersphinx_mapping = {'python': ('https://docs.python.org/3.4', None),'CircuitPython': ('https://circuitpython.readthedocs.io/en/latest/', None)}
2424

@@ -54,7 +54,7 @@
5454
# List of patterns, relative to source directory, that match files and
5555
# directories to ignore when looking for source files.
5656
# This patterns also effect to html_static_path and html_extra_path
57-
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
57+
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', '.env']
5858

5959
# The reST default role (used for this markup: `text`) to use for all
6060
# documents.

0 commit comments

Comments
 (0)