Toggle the LED of the LPC1768 using an electret microphone

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers sound_switch.h Source File

sound_switch.h

00001 #ifndef SOUND_SWITCH_H
00002 #define SOUND_SWITCH_H
00003 
00004 AnalogIn mic(p20);
00005 DigitalOut myled(LED4);
00006 
00007 void toggle_state(DigitalOut& state);
00008 
00009 #endif