Brian Daniels
/
Seeed_Grove_Recorder_Example
Example program for the Seeed Grove Recorder module
Embed:
(wiki syntax)
Show/hide line numbers
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 }
Generated on Tue Jul 12 2022 23:58:20 by 1.7.2