このライブラリでは、単音とメロディの出力が可能です。 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
Diff: Sound.cpp
- Revision:
- 14:6e0eac903431
- Parent:
- 13:cd42abff5173
--- a/Sound.cpp Sun Oct 20 06:00:50 2013 +0000 +++ b/Sound.cpp Sat Oct 26 22:32:46 2013 +0000 @@ -210,6 +210,7 @@ // tugi no onpu data syutoku sound_t data = *onpu; if(data.onkai == 0xff){ + sound_sound(data); //@SS131026 onpu = NULL; } else{