Lab4 4180 photocell controlled cursor game
Dependencies: 4DGL-uLCD-SE SDFileSystem mbed-rtos mbed wave_player
Diff: PwmSpeaker.h
- Revision:
- 0:a17e0e0a506a
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PwmSpeaker.h Tue Oct 20 20:22:41 2015 +0000 @@ -0,0 +1,10 @@ +#include "mbed.h" + +class PwmSpeaker +{ + public: + PwmSpeaker(PinName pin); + void playNote(float frequency, float duration, float volume); + private: + PwmOut _pin; +}; \ No newline at end of file