5. USE WITH THE RASPBERRY PI
5.1 Connecting the module
Connect the capture device to the pins of the Raspberry Pi as shown in
the following picture or table.
int recording = 12;
int play = 13;
void setup()
{
Serial.begin(9600);
pinMode(recording , OUTPUT);
pinMode(play, OUTPUT);
}
void loop()
{
Serial.println("Recording started!");
digitalWrite(recording , HIGH);
delay(10000);
digitalWrite(recording , LOW);
Serial.println("Recording finished!");
delay(5000);
Serial.println("Playback started!");
digitalWrite(play, HIGH);
delay(10000);
digitalWrite(play, LOW);
Serial.println("Playback finished!");
delay(100);
}