Demonstration of MSGEQ7 library interfacing with MSGEQ7 7-band Graphic Equalizer Chip made by Mixed Signal Integration.

Dependencies:   MSGEQ7 mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 // MSGEQ7_Hello_World
00002 // Created by Chris Wilson
00003 // 10/16/2013
00004 
00005 
00006 #include "mbed.h"
00007 #include "MSGEQ7.h"
00008 
00009 #define MAX 500
00010 
00011 MSGEQ7 eq(p13, p14, p15); //reset, strobe, analog
00012 
00013 int main() {
00014     while(1) {
00015         eq.readInt(MAX); //Read in integer frequency data with max value set to 'MAX'
00016         
00017         //Print out frequency data
00018         for(int i = 0; i < 7; i++){
00019             printf("%d\t", eq.freqDataInt[i]);
00020         }
00021         printf("\n");
00022     }
00023 }