Grove soundsensor lib
Diff: soundsensor.h
- Revision:
- 8:5b4b258eb1da
- Parent:
- 2:d006df643844
--- a/soundsensor.h Wed Jan 23 10:06:16 2019 +0000 +++ b/soundsensor.h Wed Jan 23 11:10:07 2019 +0000 @@ -1,4 +1,13 @@ /** +* +* @file soundsensor.h +* @brief supposed to get analogin and change input to Db, but the logic dont seem to work. +* +* @author Nikolaj M. & Mathias R. +* +* @date 23/1/2019 +* +*-----EXAMPLE----- *#include "mbed.h" *#include "soundsensor.h" *soundsensor sound(A0); @@ -11,17 +20,21 @@ * wait(0.5); * } *} +*-----EXAMPLE----- **/ //Version mbed: 164 - +//PROGRAM: SoundSensor #ifndef SOUNDSENSOR #define SOUNDSENSOR #include "mbed.h" +///SoundSensor CLASS class soundsensor{ +///INITIALIZE VARIABLES USED IN CLASS private: PinName _pin; +///FUNCTIONS AND CONSTRUCTOR public: soundsensor(PinName); void setPin(PinName pin);