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.
Dependencies: SDFileSystem MusicEngine
Fork of mbed-os-example-ble-LED by
Revision 28:846bd19a9230, committed 2017-02-06
- Comitter:
- kazu0o2
- Date:
- Mon Feb 06 00:41:12 2017 +0000
- Parent:
- 27:2416a123f5ad
- Child:
- 29:9d2335450cd4
- Commit message:
- connect audio reproduct
Changed in this revision
| source/main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/source/main.cpp Fri Feb 03 04:30:24 2017 +0000
+++ b/source/main.cpp Mon Feb 06 00:41:12 2017 +0000
@@ -47,6 +47,7 @@
char password[] = {0x00,0x00,0x00,0x00,0x00,0x00};//デバッグパスワード
//http://mag.switch-science.com/2015/06/17/fathersday2015/
+//http://www.geocities.co.jp/Playtown-Denei/9628/whatsmml.html
int speakerMode = 0;//1:接続 2:切断 3:認証エラー 4:パスワードリセット 5:起動
//接続
@@ -58,7 +59,8 @@
*/
void connectAlertOn() {
DEBUG("connectAlertOn\r\n");
- Speaker.play("T160L4CDEFEDCB+");//非同期だった
+ //Speaker.play("T160L4CDEFEDCB+");//カエルの歌
+ Speaker.play("T240L4CO4DO4EO4F");//再現
eventQueue.call_in(3000.0f, &connectAlertOff);
}
