Instructions
25/06/2015 DFRduinoBeginnerKitForArduinoV3SKU:DFR0100RobotWiki
http://www.dfrobot.com/wiki/index.php/DFRduino_Beginner_Kit_For_Arduino_V3_SKU:DFR0100 3/23
12
13
14
digitalWrite(ledPin,LOW);
delay(1000);
}
2.SOSBeacon
TheconnectiondiagramisthesamewithBlinknigaLEDtutorial.
?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
#Description:
#SendSOSBeaconbyled
*/
intledPin=10;
voidsetup(){
pinMode(ledPin,OUTPUT);
}
voidloop(){
//S(...)threedot
for(intx=0;x<3;x++){
digitalWrite(ledPin,HIGH);
delay(150);
digitalWrite(ledPin,LOW);
delay(100);
}
delay(100);
//O(‐‐‐)threedash
for(intx=0;x<3;x++){
digitalWrite(ledPin,HIGH);
delay(400);
digitalWrite(ledPin,LOW);
delay(100);
}
delay(100);
//S(...)threedot
for(intx=0;x<3;x++){
digitalWrite(ledPin,HIGH);
delay(150);
digitalWrite(ledPin,LOW);