Skip to content

Commit f8aab39

Browse files
committed
Fix ReadTheDocs. The formatting was a bit wonky and audioio needed
to be mocked out.
1 parent 9e47823 commit f8aab39

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

adafruit_circuitplayground/express.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -192,18 +192,15 @@ def red_led(self, value):
192192
self._led.value = value
193193

194194
def play_tone(self, frequency, duration):
195-
""" Produce a tone using the speaker.
195+
""" Produce a tone using the speaker. Try changing frequency to change
196+
the pitch of the tone.
196197
197198
:param int frequency: The frequency of the tone in Hz
198199
:param float duration: The duration of the tone in seconds
199200
200201
.. image :: /_static/speaker.jpg
201202
202-
The two numbers are frequency and duration. Duration is how long it
203-
plays in seconds. Try changing frequency to change the pitch of the
204-
tone.
205-
206-
..code-block:python
203+
.. code-block:: python
207204
208205
from adafruit_circuitplayground.express import circuit
209206

conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
'NeoPixel': ('https://circuitpython.readthedocs.io/projects/neopixel/en/latest/', None)}
2121

2222
# Libraries we depend on but don't need for generating docs.
23-
autodoc_mock_imports = ["board", "analogio", "digitalio", "neopixel", "adafruit_thermistor"]
23+
autodoc_mock_imports = ["board", "analogio", "digitalio", "neopixel", "adafruit_thermistor", "audioio"]
2424

2525
# Add any paths that contain templates here, relative to this directory.
2626
templates_path = ['_templates']

0 commit comments

Comments
 (0)