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:
- 4:d76458b00616
- Parent:
- 3:9ddabd24f48c
--- a/tone.h Mon Nov 20 03:53:48 2017 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,27 +0,0 @@ -/* - tone.h - Written by Leong Kum Loong. - 20 Nov 2017, REV. 2 - - 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. - - Example reference from Github - =============================== - The mario_example routine "notes" are reference to the work of Gregory Kielian. - The starwars_example routine "notes" are reference to the work of nicksort. -*/ - -#ifndef tone_h -#define tone_h -#include "mbed.h" - -void tone(int frequency, int duration_ms=0); //Sound tone at specific frequency of 50% duty cycle and duration(optional). - -void noTone(); //Turn off tone. - -void mario_example(); - -void starwars_example(); - -#endif \ No newline at end of file