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