Skip to content

Commit f895278

Browse files
committed
Changed stuff to appease the Sphinx
1 parent d69b914 commit f895278

15 files changed

+39
-32
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1+
*.mpy
2+
.idea
13
__pycache__
24
_build
35
*.pyc
46
.env
57
build*
68
bundles
9+
*.DS_Store
10+
.eggs
11+
dist
12+
**/*.egg-info

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ install:
2727
- pip install --force-reinstall pylint==1.9.2
2828

2929
script:
30-
- pylint adafruit_boardtest.py
30+
- pylint adafruit_boardtest/*.py
3131
- ([[ ! -d "examples" ]] || pylint --disable=missing-docstring,invalid-name,bad-whitespace examples/*.py)
3232
- circuitpython-build-bundles --filename_prefix adafruit-circuitpython-boardtest --library_location .
3333
- cd docs && sphinx-build -E -W -b html . _build/html && cd ..

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Board test suite for CircuitPython. Run these tests to ensure that a CircuitPyth
1717

1818
Tests can be run individually. Copy code found in each *boardtest_<name>.py* module to your CIRCUITPYTHON device drive, and rename the file *code.py*.
1919

20-
Alternatively, tests can be imported as modules. Copy the desired test file to CIRCUITPYTHON device drive and import the test in your own code. Each test can be run with the `run_test(pins)` function.
20+
Alternatively, tests can be imported as modules. Copy the desired test file to CIRCUITPYTHON device drive and import the test in your own code. Each test can be run with the ``run_test(pins)`` function.
2121

2222
The *boardtest_suite.py* (in *examples/*) shows how to call tests from within a script. *boardtest_suite.py* runs the following tests:
2323

@@ -56,10 +56,10 @@ You will need the following components:
5656

5757
Connect the components as shown to your board. Note that you can use a 220 Ohm or 330 Ohm resistor for the LED.
5858

59-
.. image:: docs/test_jig.png
59+
.. image:: https://github.com/adafruit/Adafruit_CircuitPython_BoardTest/blob/master/docs/test_jig.png
6060
:alt: Test jig Fritzing diagram
6161

62-
To use each test, import the library, find the pins available on your board, and call `boardtest_<test name>.run_test(pins)`. To run the GPIO test, for example:
62+
To use each test, import the library, find the pins available on your board, and call ``boardtest_<test name>.run_test(pins)``. To run the GPIO test, for example:
6363

6464
.. code:: python
6565

adafruit_boardtest/boardtest_gpio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
# THE SOFTWARE.
2222
"""
23-
`GPIO Test`
23+
`adafruit_boardtest.boardtest_gpio`
2424
====================================================
2525
Toggles all available GPIO on a board. Verify their operation with an LED,
2626
multimeter, another microcontroller, etc.

adafruit_boardtest/boardtest_i2c.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
# THE SOFTWARE.
2222
"""
23-
`I2C Test`
23+
`adafruit_boardtest.boardtest_i2c`
2424
====================================================
2525
Performs random writes and reads to I2C EEPROM.
2626

adafruit_boardtest/boardtest_led.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
# THE SOFTWARE.
2222
"""
23-
`LED Test`
23+
`adafruit_boardtest.boardtest_led`
2424
====================================================
2525
Toggles all available onboard LEDs. You will need to manually verify their
2626
operation by watching them.

adafruit_boardtest/boardtest_sd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
# THE SOFTWARE.
2222
"""
23-
`SD Test`
23+
`adafruit_boardtest.boardtest_sd`
2424
====================================================
2525
Performs random writes and reads to SD card over SPI.
2626

adafruit_boardtest/boardtest_sd_cd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
# THE SOFTWARE.
2222
"""
23-
`SD CD Test`
23+
`adafruit_boardtest.boardtest_sd_cd`
2424
====================================================
2525
Reports the output of an SD card's chip detect (CD) pin.
2626

adafruit_boardtest/boardtest_spi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
# THE SOFTWARE.
2222
"""
23-
`SPI Test`
23+
`adafruit_boardtest.boardtest_spi`
2424
====================================================
2525
Performs random writes and reads to SPI EEPROM.
2626

adafruit_boardtest/boardtest_uart.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
# THE SOFTWARE.
2222
"""
23-
`UART Test`
23+
`adafruit_boardtest.boardtest_uart`
2424
====================================================
2525
Performs random writes and reads across UART. Connect a wire from TX pin to RX pin.
2626

adafruit_boardtest/boardtest_voltage_monitor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
# THE SOFTWARE.
2222
"""
23-
`Voltage Monitor Test`
23+
`adafruit_boardtest.boardtest_voltage_monitor`
2424
====================================================
2525
Prints out the measured voltage on any onboard voltage/battery monitor pins.
2626
Note that some boards have an onboard voltage divider to decrease the voltage

docs/api.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
.. automodule:: boardtest_gpio
1+
.. automodule:: adafruit_boardtest.boardtest_gpio
22
:members:
33

4-
.. automodule:: boardtest_i2c
4+
.. automodule:: adafruit_boardtest.boardtest_i2c
55
:members:
66

7-
.. automodule:: boardtest_led
7+
.. automodule:: adafruit_boardtest.boardtest_led
88
:members:
99

10-
.. automodule:: boardtest_sd
10+
.. automodule:: adafruit_boardtest.boardtest_sd
1111
:members:
1212

13-
.. automodule:: boardtest_sd_cd
13+
.. automodule:: adafruit_boardtest.boardtest_sd_cd
1414
:members:
1515

16-
.. automodule:: boardtest_spi
16+
.. automodule:: adafruit_boardtest.boardtest_spi
1717
:members:
1818

19-
.. automodule:: boardtest_uart
19+
.. automodule:: adafruit_boardtest.boardtest_uart
2020
:members:
2121

22-
.. automodule:: boardtest_voltage_monitor
23-
:members:
22+
.. automodule:: adafruit_boardtest.boardtest_voltage_monitor
23+
:members:

docs/conf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
# Uncomment the below if you use native CircuitPython modules such as
2121
# digitalio, micropython and busio. List the modules you use. Without it, the
2222
# autodoc module docs will fail to generate with a warning.
23-
autodoc_mock_imports = ["supervisor", "storage"]
23+
autodoc_mock_imports = ["supervisor", "storage", "analogio", "boardtest_gpio", "boardtest_i2c",
24+
"boardtest_led", "boardtest_sd", "boardtest_sd_cd", "boardtest_spi",
25+
"boardtest_uart", "boardtest_voltage_monitor"]
2426

2527

2628
intersphinx_mapping = {'python': ('https://docs.python.org/3.4', None),'BusDevice': ('https://circuitpython.readthedocs.io/projects/busdevice/en/latest/', None),'CircuitPython': ('https://circuitpython.readthedocs.io/en/latest/', None)}

docs/index.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,13 @@ Table of Contents
2323
.. toctree::
2424
:caption: Tutorials
2525

26-
.. todo:: Add any Learn guide links here. If there are none, then simply delete this todo and leave
27-
the toctree above for use later.
26+
Installing CircuitPython on SAMD21 Boards <https://learn.adafruit.com/installing-circuitpython-on-samd21-boards>
2827

2928
.. toctree::
3029
:caption: Related Products
3130

32-
.. todo:: Add any product links here. If there are none, then simply delete this todo and leave
33-
the toctree above for use later.
31+
Adafruit Feather M0 Basic Proto <https://www.adafruit.com/product/2772>
32+
Arduino MKR Zero <https://store.arduino.cc/arduino-mkrzero>
3433

3534
.. toctree::
3635
:caption: Other Links

examples/boardtest_suite.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@
6565

6666
import board
6767

68-
import boardtest_led
69-
import boardtest_gpio
70-
import boardtest_voltage_monitor
71-
import boardtest_uart
72-
import boardtest_spi
73-
import boardtest_i2c
68+
from adafruit_boardtest import boardtest_led
69+
from adafruit_boardtest import boardtest_gpio
70+
from adafruit_boardtest import boardtest_voltage_monitor
71+
from adafruit_boardtest import boardtest_uart
72+
from adafruit_boardtest import boardtest_spi
73+
from adafruit_boardtest import boardtest_i2c
7474

7575
# Constants
7676
UART_TX_PIN_NAME = 'TX'

0 commit comments

Comments
 (0)