test publish
Dependencies: mbed GroveEarbudSensor
Speaker.h
- Committer:
- age2pierre
- Date:
- 2016-03-25
- Revision:
- 4:23aba111f73a
- Parent:
- 3:b4f04b8b8797
- Child:
- 5:ee265ab0752d
File content as of revision 4:23aba111f73a:
#ifndef _SPEAKER_H_ #define _SPEAKER_H_ #include "mbed.h" #include "Notes.h" /** This class is used to generate music note through a speaker by sending a pwm signal */ class Speaker { private : PwmOut* pin; float pulseWidth; protected : public : Speaker(PwmOut argPin); bool setPulseWidth(float argPulseWidth); void play(Notes note); void mute(); } #endif