sqefqsdf

Dependencies:   C12832 EthernetInterface LM75B mbed-rtos mbed

Fork of app-board-LM75B by Chris Styles

Speaker.h

Committer:
gimohd
Date:
2017-05-09
Revision:
7:0618a1e407d0
Parent:
6:77a4c45f6416

File content as of revision 7:0618a1e407d0:

#ifndef Speaker_H
#define Speaker_H

#include "mbed.h"
/**
 *   Class to control an RGB LED using three PWM pins
 */
class Speaker: PwmOut
{
public:
    Speaker(PinName pin);
    ~Speaker();
    void play(int number);
private:
    static float soundValues[17][3];
    void playSound(float frequency, float duration, float delay);
};

#endif