Grove soundsensor lib

Embed: (wiki syntax)

« Back to documentation index

soundsensor.h File Reference

soundsensor.h File Reference

supposed to get analogin and change input to Db, but the logic dont seem to work. More...

Go to the source code of this file.

Data Structures

class  soundsensor
 SoundSensor CLASS. More...

Detailed Description

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); bool toDb = true;

int main() { while (true) { printf("Loudness: %f\r\n", sound.listen(toDb)); wait(0.5); } } -----EXAMPLE-----

Definition in file soundsensor.h.