-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4833 from tonhuisman/feature/RTTTL-documentation-…
…update-and-restore-cancelled-event [RTTTL] Restore Cancelled event, update documentation
- Loading branch information
Showing
5 changed files
with
83 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
.. csv-table:: | ||
:header: "Event", "Example" | ||
:widths: 30, 20 | ||
|
||
" | ||
``RTTTL#Started`` | ||
Event generated when a melody/song is played using the Async RTTTL method. | ||
"," | ||
|
||
.. code-block:: none | ||
|
||
on RTTTL#Started do | ||
GPIO,13,1 // Turn on LED while playing a song | ||
endon | ||
|
||
" | ||
" | ||
``RTTTL#Finished`` | ||
Event generated when the playback of a melody/song is finished using the Async RTTTL method. | ||
"," | ||
|
||
.. code-block:: none | ||
|
||
on RTTTL#Finished do | ||
GPIO,13,0 // Turn off LED after playing a song | ||
event,nextSong // Select the next song to play | ||
endon | ||
|
||
" | ||
" | ||
``RTTTL#Cancelled`` | ||
Event generated when the currently playing melody/song is cancelled by starting a new song using the Async RTTTL method. | ||
"," | ||
|
||
.. code-block:: none | ||
|
||
on RTTTL#Cancelled do | ||
GPIO,13,0 // Turn off LED | ||
endon | ||
|
||
" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters