Example program for the Grove Loudness Sensor

Dependencies:   mbed

Files at this revision

API Documentation at this revision

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