このライブラリでは、単音とメロディの出力が可能です。 In this library, you can output a single tone and melody. mbedのpwmOutとDigitalOutを使ってスピーカや圧電ブザーを直接駆動します。 directly drive speaker or buzzer and DigitalOut pwmOut using the mbed. メロディデータは、mbedのローカルにtxtファイルとして保存するか、プログラム中に配列データとして保存してください。 Melody data is either stored in a txt file on the local mbed, save it as a data array in the program.

Dependents:   kitchenTimer_Clock SoundLibraryExample_Melody_ProgramData M3PI_SuiviLigne

Files at this revision

API Documentation at this revision

Comitter:
suupen
Date:
Sun Jan 15 01:15:30 2012 +0000
Parent:
11:c342b5349740
Commit message:
120115b bug fix

Changed in this revision

Sound.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Sound.cpp	Sun Jan 15 00:03:06 2012 +0000
+++ b/Sound.cpp	Sun Jan 15 01:15:30 2012 +0000
@@ -296,6 +296,7 @@
 void Sound::sound_enso(bool siji){
     if(siji == true){
         hatuon_jikan.reset();               // 120108 bug fix
+        keikajikan = 0;                     // 120115 bug fix
         onpu = (sound_t*)ensoDataTable;
     }
     else{