Sos Beacon - DFRobot DFR0100 Manual

Beginner kit for arduino v3
Table of Contents

Advertisement

25/06/2015
12
        digitalWrite(ledPin,LOW);
13
        delay(1000);
14
}
2.SOS Beacon
The connection diagram is the same with Blinknig a LED tutorial.
?
1
/*
2
 # Description:    
3
 # Send SOS Beacon by led
4
*/
5
 
int
ledPin = 10;
6
 
void
setup() {
7
        pinMode(ledPin, OUTPUT);
8
}
9
 
void
loop() {
10
 
11
      // S(...) three dot
12
 
       for(int
x=0;x<3;x++){
13
        digitalWrite(ledPin,HIGH);           
14
        delay(150);                          
15
        digitalWrite(ledPin,LOW);           
16
        delay(100);                        
17
        }
18
 
       
19
 
20
        delay(100);
21
      // O(‐‐‐) three dash
22
 
       for(int
x=0;x<3;x++){
23
        digitalWrite(ledPin,HIGH);           
24
        delay(400);                          
25
        digitalWrite(ledPin,LOW);            
26
        delay(100);                          
27
        }
28
 
29
        delay(100);
30
 
      
31
      //S(...) three dot
32
 
       for(int
x=0;x<3;x++){
33
        digitalWrite(ledPin,HIGH);          
34
        delay(150);                          
35
        digitalWrite(ledPin,LOW);           
http://www.dfrobot.com/wiki/index.php/DFRduino_Beginner_Kit_For_Arduino_V3_SKU:DFR0100
DFRduino Beginner Kit For Arduino V3 SKU:DFR0100 ­ Robot Wiki
3/23

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DFR0100 and is the answer not in the manual?

Questions and answers

Table of Contents