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.
Diff: tone.h
- Revision:
- 0:2b4c66b3f6aa
- Child:
- 1:3b00679c208a
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tone.h Sun Nov 19 06:08:29 2017 +0000 @@ -0,0 +1,21 @@ +/* + tone.h + Written by Leong Kum Loong. + 19 Nov 2017, REV. 0 + + All routines and functions in this library are written by me solely with the purpose + of implementing an identical "tone" library that was introduced by Arduino IDE. + The mario_example routine "notes" are reference to the work of Gregory Kielian + an Electrical Engineer at Google ATAP Skunkworks via Avalon + from his Mario.ino sketch for Arduino. +*/ + +#ifndef tone_h +#define tone_h +#include "mbed.h" + +void tone(int frequency, int duration_ms); + +void mario_example(); + +#endif \ No newline at end of file