Fuad Rizaldy
/
MSGEQ7_Hello_World
sadsadsadsadsafasfsaasasd
main.cpp
- Committer:
- chrisisthefish
- Date:
- 2013-10-16
- Revision:
- 0:96716743b93d
- Child:
- 1:ed4f480e9a18
File content as of revision 0:96716743b93d:
// 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"); } }