Chris Wilson / Mbed 2 deprecated MSGEQ7_Hello_World

Dependencies:   MSGEQ7 mbed

Files at this revision

API Documentation at this revision

Comitter:
chrisisthefish
Date:
Wed Oct 16 06:45:05 2013 +0000
Commit message:
Initial creation of MSGEQ7_Hello_World application

Changed in this revision

MSGEQ7.lib Show annotated file Show diff for this revision Revisions of this file
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 96716743b93d MSGEQ7.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MSGEQ7.lib	Wed Oct 16 06:45:05 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/chrisisthefish/code/MSGEQ7/#974a4855a7f8
diff -r 000000000000 -r 96716743b93d main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Oct 16 06:45:05 2013 +0000
@@ -0,0 +1,23 @@
+// MSGEQ7_Hello_World
+// Created by Chris Wilson
+// 10/16/2013
+
+
+#include "mbed.h"
+#include "MSGEQ7.h"
+
+#define MAX 500
+
+MSGEQ7 eq(p13, p14, p15); //reset, strobe, analog
+
+int main() {
+    while(1) {
+        eq.readInt(MAX); //Read in integer frequency data with max value set to 'MAX'
+        
+        //Print out frequency data
+        for(int i = 0; i < 7; i++){
+            printf("%d\t", eq.freqDataInt[i]);
+        }
+        printf("\n");
+    }
+}
diff -r 000000000000 -r 96716743b93d mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed Oct 16 06:45:05 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/a9913a65894f
\ No newline at end of file