Περιγραφή
Ένα laser εκπέμπει . . . _ _ _ . . . SOS!
Εξαρτήματα και συνδέσεις
Η είσοδος του laser συνδέεται στην ψηφιακή έξοδο 13 στην πλακέτα, στην οποία είναι και το ενσωματωμένο BUILT_IN LED.
- Arduino Uno
- Laser module
Κώδικας
void setup()
{
pinMode(13, OUTPUT);
}
void loop()
{
digitalWrite(13, HIGH);
delay(100); // Wait for 1000 millisecond(s)
digitalWrite(13, LOW);
delay(100); // Wait for 1000 millisecond(s)
digitalWrite(13, HIGH);
delay(100); // Wait for 1000 millisecond(s)
digitalWrite(13, LOW);
delay(100); // Wait for 1000 millisecond(s)
digitalWrite(13, HIGH);
delay(100); // Wait for 1000 millisecond(s)
digitalWrite(13, LOW);
delay(300); // Wait for 3000 millisecond(s)
digitalWrite(13, HIGH);
delay(300); // Wait for 3000 millisecond(s)
digitalWrite(13, LOW);
delay(100); // Wait for 1000 millisecond(s)
digitalWrite(13, HIGH);
delay(300); // Wait for 3000 millisecond(s)
digitalWrite(13, LOW);
delay(1000); // Wait for 1000 millisecond(s)
digitalWrite(13, HIGH);
delay(300); // Wait for 3000 millisecond(s)
digitalWrite(13, LOW);
delay(300); // Wait for 3000 millisecond(s)
digitalWrite(13, HIGH);
delay(100); // Wait for 1000 millisecond(s)
digitalWrite(13, LOW);
delay(100); // Wait for 1000 millisecond(s)
digitalWrite(13, HIGH);
delay(100); // Wait for 1000 millisecond(s)
digitalWrite(13, LOW);
delay(100); // Wait for 1000 millisecond(s)
digitalWrite(13, HIGH);
delay(100); // Wait for 1000 millisecond(s)
digitalWrite(13, LOW);
delay(700); // Wait for 7000 millisecond(s)
digitalWrite(13, HIGH);
delay(100); // Wait for 1000 millisecond(s)
digitalWrite(13, LOW);
delay(100); // Wait for 1000 millisecond(s)
digitalWrite(13, HIGH);
delay(100); // Wait for 1000 millisecond(s)
digitalWrite(13, LOW);
delay(700); // Wait for 7000 millisecond(s)
}
Δεν υπάρχουν σχόλια:
Δημοσίευση σχολίου