以前のLibraryでは、スピーカ出力にPWM,DigitalOutを使いましたが、これは、両方ともPWMにしたものです。LPC1114FN28ではDigitalOutにノイズが乗ることがありその対応です。
Dependents: kitchenTimer LPC1114FN28_kitchenTimer_Clock
Fork of Sound by
Diff: Sound.h
- Revision:
- 6:fb02f6d9bbaf
- Parent:
- 5:9d861f258467
- Child:
- 7:758ad151b16f
diff -r 9d861f258467 -r fb02f6d9bbaf Sound.h --- a/Sound.h Wed Nov 16 13:57:19 2011 +0000 +++ b/Sound.h Wed Nov 16 13:58:47 2011 +0000 @@ -17,10 +17,10 @@ * @code * // Continuously sweep the servo through it's full range * -*#include "mbed.h" -*#include "pwmSound.h" // pwm sound library header +* #include "mbed.h" +* #include "pwmSound.h" // pwm sound library header * -*Sound sound(p21, p10); // 1tu me no sound syuturyoku (pwmOut = p21, digitalOut = p10) +* Sound sound(p21, p10); // 1tu me no sound syuturyoku (pwmOut = p21, digitalOut = p10) * * * <scematic> @@ -55,9 +55,9 @@ * }; * * /-------------------------------------- -** main +* * main * /--------------------------------------- -*int main() { +* int main() { * * //--------------------- * // enso data no settei