Grove soundsensor lib
Diff: soundsensor.cpp
- Revision:
- 5:944179f9d11f
- Parent:
- 4:89a9c205446c
- Child:
- 6:fb51a4b71646
--- a/soundsensor.cpp Fri Jan 18 10:33:01 2019 +0000 +++ b/soundsensor.cpp Fri Jan 18 10:35:02 2019 +0000 @@ -26,6 +26,7 @@ float soundsensor::listen(bool toDb){ AnalogIn sensor(this->getPin()); + int values[]; for(int i=0;i<100;i++){ values[i] = sensor.read_u16();