Brian Daniels
/
Seeed_Grove_Recorder_Example
Example program for the Seeed Grove Recorder module
Revision 0:e6c90c4a7893, committed 2015-04-30
- Comitter:
- bridadan
- Date:
- Thu Apr 30 19:56:54 2015 +0000
- Commit message:
- Initial commit
Changed in this revision
diff -r 000000000000 -r e6c90c4a7893 ISD1820P.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ISD1820P.lib Thu Apr 30 19:56:54 2015 +0000 @@ -0,0 +1,1 @@ +http://developer.mbed.org/users/bridadan/code/ISD1820P/#19584eb1fdf7
diff -r 000000000000 -r e6c90c4a7893 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Apr 30 19:56:54 2015 +0000 @@ -0,0 +1,19 @@ +#include "mbed.h" +#include "ISD1820P.h" + +InterruptIn recordButton(SW2); +InterruptIn playButton(SW3); + +ISD1820P recorder(D3, D2); + +DigitalOut led(LED_RED, 1); + +int main() +{ + recordButton.rise(&recorder, &ISD1820P::startRecordingMaxTime); + playButton.rise(&recorder, &ISD1820P::startPlayingMaxTime); + + while (true) { + wait(2.0f); + } +} \ No newline at end of file
diff -r 000000000000 -r e6c90c4a7893 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Apr 30 19:56:54 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/8ab26030e058 \ No newline at end of file