スピーカーで音を鳴らす
Dependencies: mbed
Revision 3:722a88ffb4f7, committed 2015-08-22
- Comitter:
- hagi_hara
- Date:
- Sat Aug 22 09:59:15 2015 +0000
- Parent:
- 2:44b8465482f9
- Commit message:
- Change for NUCLEO
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
diff -r 44b8465482f9 -r 722a88ffb4f7 main.cpp --- a/main.cpp Sat Aug 15 07:22:42 2015 +0000 +++ b/main.cpp Sat Aug 22 09:59:15 2015 +0000 @@ -8,7 +8,7 @@ #define mC 261.626 //「ド」の周波数(Hz) -PwmOut speaker(dp1);//dp1ピンを出力ピンに設定 +PwmOut speaker(A0);//A0ピンを出力ピンに設定 int main() {
diff -r 44b8465482f9 -r 722a88ffb4f7 mbed.bld --- a/mbed.bld Sat Aug 15 07:22:42 2015 +0000 +++ b/mbed.bld Sat Aug 22 09:59:15 2015 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/b9ad9a133dc7 \ No newline at end of file +http://mbed.org/users/mbed_official/code/mbed/builds/8ed44a420e5c \ No newline at end of file