ボタンを押してスピーカーから音を鳴らす

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
hagi_hara
Date:
Sat Aug 22 09:59:21 2015 +0000
Parent:
1:27e47a17243e
Child:
3:9f7097f89b78
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
--- a/main.cpp	Sat Aug 15 09:26:30 2015 +0000
+++ b/main.cpp	Sat Aug 22 09:59:21 2015 +0000
@@ -7,8 +7,8 @@
 
 #define mC 261.626 //「ド」の周波数(Hz)
 
-PwmOut speaker(dp1);//dp1ピンを出力ピンに設定
-DigitalIn button(dp14);//dp14ピンをデジタル入力ピンに設定
+PwmOut speaker(A0);//A0ピンを出力ピンに設定
+DigitalIn button(D7);//D7ピンをデジタル入力ピンに設定
 
 int main()
 {
--- a/mbed.bld	Sat Aug 15 09:26:30 2015 +0000
+++ b/mbed.bld	Sat Aug 22 09:59:21 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