Skip to content

Commit ab8f680

Browse files
author
Martin O'Hanlon
committed
fix recipes out of order
1 parent ef9ed53 commit ab8f680

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

docs/recipes.rst

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,20 @@ Control a passive buzzer or speaker that can play different tones or frequencies
168168

169169
.. literalinclude:: examples/speaker.py
170170

171+
Play a tune
172+
~~~~~~~~~~~
173+
174+
Play a tune of note names and durations in beats:
175+
176+
.. literalinclude:: examples/speaker_tune.py
177+
178+
Play individual notes
179+
~~~~~~~~~~~~~~~~~~~~~
180+
181+
Play individual notes and control the timing or perform another action:
182+
183+
.. literalinclude:: examples/speaker_notes.py
184+
171185
Motor
172186
-----
173187

@@ -191,20 +205,6 @@ Move the rover *roughly* in a square:
191205

192206
.. literalinclude:: examples/robot_rover_square.py
193207

194-
Play a tune
195-
~~~~~~~~~~~
196-
197-
Play a tune of note names and durations in beats:
198-
199-
.. literalinclude:: examples/speaker_tune.py
200-
201-
Play individual notes
202-
~~~~~~~~~~~~~~~~~~~~~
203-
204-
Play individual notes and control the timing or perform another action:
205-
206-
.. literalinclude:: examples/speaker_notes.py
207-
208208
Internal Temperature Sensor
209209
---------------------------
210210

0 commit comments

Comments
 (0)