25/06/2015
DFRduino Beginner Kit For Arduino V3 SKU:DFR0100 Robot Wiki
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.SOS Beacon
The connection diagram is the same with Blinknig a LED tutorial.
?
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:
# Send SOS Beacon by led
*/
int
ledPin = 10;
void
setup() {
pinMode(ledPin, OUTPUT);
}
void
loop() {
// S(...) three dot
for(int
x=0;x<3;x++){
digitalWrite(ledPin,HIGH);
delay(150);
digitalWrite(ledPin,LOW);
delay(100);
}
delay(100);
// O(‐‐‐) three dash
for(int
x=0;x<3;x++){
digitalWrite(ledPin,HIGH);
delay(400);
digitalWrite(ledPin,LOW);
delay(100);
}
delay(100);
//S(...) three dot
for(int
x=0;x<3;x++){
digitalWrite(ledPin,HIGH);
delay(150);
digitalWrite(ledPin,LOW);