Brian Daniels
/
Seeed_Grove_Loudness_sensor
Example program for the Grove Loudness Sensor
Revision 0:9e85de744cb1, committed 2015-04-30
- Comitter:
- bridadan
- Date:
- Thu Apr 30 20:39:31 2015 +0000
- Commit message:
- Initial commit
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
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
diff -r 000000000000 -r 9e85de744cb1 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Apr 30 20:39:31 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/8ab26030e058 \ No newline at end of file