Grove soundsensor lib
Diff: soundsensor.h
- Revision:
- 1:29daa2bdd0c6
- Parent:
- 0:18d442efc99a
- Child:
- 2:d006df643844
--- a/soundsensor.h Thu Jan 17 07:42:19 2019 +0000 +++ b/soundsensor.h Thu Jan 17 08:10:53 2019 +0000 @@ -15,17 +15,18 @@ #ifndef SOUNDSENSOR #define SOUNDSENSOR +#include "mbed.h" class soundsensor{ private: PinName _pin; public: soundsensor(PinName); - void setpin(PinName pin); + void setPin(PinName pin); PinName getPin(); float convertToDb(float); float revertFromDb(float); - float listen(float input, bool toDb); -} + float listen(bool toDb); +}; #endif \ No newline at end of file