Brian Daniels
/
Seeed_Grove_Loudness_sensor
Example program for the Grove Loudness Sensor
Diff: main.cpp
- Revision:
- 0:9e85de744cb1
diff -r 000000000000 -r 9e85de744cb1 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Apr 30 20:39:31 2015 +0000 @@ -0,0 +1,11 @@ +#include "mbed.h" + +AnalogIn loudness(A0); + +int main() +{ + while (true) { + printf("Loudness: %f\r\n", loudness.read()); + wait(0.5f); + } +} \ No newline at end of file