Sakis Kasampalis
/
sound-switch
Toggle the LED of the LPC1768 using an electret microphone
sound_switch.h@0:01301c8c38ab, 2017-06-04 (annotated)
- Committer:
- faif
- Date:
- Sun Jun 04 11:50:37 2017 +0000
- Revision:
- 0:01301c8c38ab
Toggle the LED of lpc1768 using an electret microphone
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
faif | 0:01301c8c38ab | 1 | #ifndef SOUND_SWITCH_H |
faif | 0:01301c8c38ab | 2 | #define SOUND_SWITCH_H |
faif | 0:01301c8c38ab | 3 | |
faif | 0:01301c8c38ab | 4 | AnalogIn mic(p20); |
faif | 0:01301c8c38ab | 5 | DigitalOut myled(LED4); |
faif | 0:01301c8c38ab | 6 | |
faif | 0:01301c8c38ab | 7 | void toggle_state(DigitalOut& state); |
faif | 0:01301c8c38ab | 8 | |
faif | 0:01301c8c38ab | 9 | #endif |