EasyManua.ls Logo

Joy-it SBC-SOUNDMODULE - Page 4

Joy-it SBC-SOUNDMODULE
6 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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);
}

Related product manuals