Lab4 4180 photocell controlled cursor game

Dependencies:   4DGL-uLCD-SE SDFileSystem mbed-rtos mbed wave_player

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers PwmSpeaker.h Source File

PwmSpeaker.h

00001 #include "mbed.h"
00002 
00003 class PwmSpeaker
00004 {
00005   public:
00006     PwmSpeaker(PinName pin);
00007     void playNote(float frequency, float duration, float volume);
00008   private:
00009     PwmOut _pin;
00010 };