スピーカーで音を鳴らす
Dependencies: mbed
Diff: main.cpp
- Revision:
- 1:42c121dda003
- Parent:
- 0:f5bba12ef049
- Child:
- 2:44b8465482f9
--- a/main.cpp Sat Aug 15 07:01:04 2015 +0000 +++ b/main.cpp Sat Aug 15 07:07:09 2015 +0000 @@ -4,7 +4,7 @@ #define mC 261.626 //「ド」の周波数 //ピン設定 -PwmOut speaker(dp18); +PwmOut speaker(dp1); int main() { @@ -19,5 +19,5 @@ speaker = 0.0; - while(true) + while(true); } \ No newline at end of file