Toggle the LED of the LPC1768 using an electret microphone

Dependencies:   mbed

sound_switch.h

Committer:
faif
Date:
2017-06-04
Revision:
0:01301c8c38ab

File content as of revision 0:01301c8c38ab:

#ifndef SOUND_SWITCH_H
#define SOUND_SWITCH_H

AnalogIn mic(p20);
DigitalOut myled(LED4);

void toggle_state(DigitalOut& state);

#endif