Lab4 4180 photocell controlled cursor game

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

PwmSpeaker.h

Committer:
pwolfe8
Date:
2015-10-20
Revision:
0:a17e0e0a506a

File content as of revision 0:a17e0e0a506a:

#include "mbed.h"

class PwmSpeaker
{
  public:
    PwmSpeaker(PinName pin);
    void playNote(float frequency, float duration, float volume);
  private:
    PwmOut _pin;
};