Example program for the Seeed Grove Recorder module

Dependencies:   ISD1820P mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "ISD1820P.h"
00003 
00004 InterruptIn recordButton(SW2);
00005 InterruptIn playButton(SW3);
00006 
00007 ISD1820P recorder(D3, D2);
00008 
00009 DigitalOut led(LED_RED, 1);
00010 
00011 int main()
00012 {
00013     recordButton.rise(&recorder, &ISD1820P::startRecordingMaxTime);
00014     playButton.rise(&recorder, &ISD1820P::startPlayingMaxTime);
00015     
00016     while (true) {  
00017         wait(2.0f);
00018     }
00019 }