sqefqsdf

Dependencies:   C12832 EthernetInterface LM75B mbed-rtos mbed

Fork of app-board-LM75B by Chris Styles

Committer:
gimohd
Date:
Tue May 09 12:26:57 2017 +0000
Revision:
7:0618a1e407d0
Parent:
6:77a4c45f6416
dfdsqf

Who changed what in which revision?

UserRevisionLine numberNew contents of line
gimohd 6:77a4c45f6416 1 #ifndef Speaker_H
gimohd 6:77a4c45f6416 2 #define Speaker_H
gimohd 6:77a4c45f6416 3
gimohd 6:77a4c45f6416 4 #include "mbed.h"
gimohd 6:77a4c45f6416 5 /**
gimohd 6:77a4c45f6416 6 * Class to control an RGB LED using three PWM pins
gimohd 6:77a4c45f6416 7 */
gimohd 6:77a4c45f6416 8 class Speaker: PwmOut
gimohd 6:77a4c45f6416 9 {
gimohd 6:77a4c45f6416 10 public:
gimohd 6:77a4c45f6416 11 Speaker(PinName pin);
gimohd 6:77a4c45f6416 12 ~Speaker();
gimohd 6:77a4c45f6416 13 void play(int number);
gimohd 6:77a4c45f6416 14 private:
gimohd 6:77a4c45f6416 15 static float soundValues[17][3];
gimohd 6:77a4c45f6416 16 void playSound(float frequency, float duration, float delay);
gimohd 6:77a4c45f6416 17 };
gimohd 6:77a4c45f6416 18
gimohd 6:77a4c45f6416 19 #endif