Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
tone.h@0:2b4c66b3f6aa, 2017-11-19 (annotated)
- Committer:
- reesey
- Date:
- Sun Nov 19 06:08:29 2017 +0000
- Revision:
- 0:2b4c66b3f6aa
- Child:
- 1:3b00679c208a
tone.h; Written by Leong Kum Loong.; 19 Nov 2017, REV. 0
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
reesey | 0:2b4c66b3f6aa | 1 | /* |
reesey | 0:2b4c66b3f6aa | 2 | tone.h |
reesey | 0:2b4c66b3f6aa | 3 | Written by Leong Kum Loong. |
reesey | 0:2b4c66b3f6aa | 4 | 19 Nov 2017, REV. 0 |
reesey | 0:2b4c66b3f6aa | 5 | |
reesey | 0:2b4c66b3f6aa | 6 | All routines and functions in this library are written by me solely with the purpose |
reesey | 0:2b4c66b3f6aa | 7 | of implementing an identical "tone" library that was introduced by Arduino IDE. |
reesey | 0:2b4c66b3f6aa | 8 | The mario_example routine "notes" are reference to the work of Gregory Kielian |
reesey | 0:2b4c66b3f6aa | 9 | an Electrical Engineer at Google ATAP Skunkworks via Avalon |
reesey | 0:2b4c66b3f6aa | 10 | from his Mario.ino sketch for Arduino. |
reesey | 0:2b4c66b3f6aa | 11 | */ |
reesey | 0:2b4c66b3f6aa | 12 | |
reesey | 0:2b4c66b3f6aa | 13 | #ifndef tone_h |
reesey | 0:2b4c66b3f6aa | 14 | #define tone_h |
reesey | 0:2b4c66b3f6aa | 15 | #include "mbed.h" |
reesey | 0:2b4c66b3f6aa | 16 | |
reesey | 0:2b4c66b3f6aa | 17 | void tone(int frequency, int duration_ms); |
reesey | 0:2b4c66b3f6aa | 18 | |
reesey | 0:2b4c66b3f6aa | 19 | void mario_example(); |
reesey | 0:2b4c66b3f6aa | 20 | |
reesey | 0:2b4c66b3f6aa | 21 | #endif |