/usr/share/fritzing/sketches/core/Fritzing Creator Kit DE+EN/creator-kit-en/Fritzing Creator Kit/Exercise1_2a/Exercise1_2a.ino is in fritzing-data 0.9.3b+dfsg-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | /*
Exercise 1_2 Blink SOS
This program blinks SOS in Morse code with an LED:
* short-short-short = S
* long-long-long = O
* short-short-short = S
This example is part of the Fritzing Creator Kit: www.fritzing.org/creator-kit.
*/
int led = 13; // integer variable led is declared
void setup() { // the setup() method is executed only once
pinMode(led, OUTPUT); // the led PIN is declared as digital output
}
void loop() { // the loop() method is repeated
digitalWrite(led, HIGH); // switching on the led
delay(200); // stopping the program for 200 milliseconds
digitalWrite(led, LOW); // switching off the led
delay(200); // stopping the program for 200 milliseconds
digitalWrite(led, HIGH); // switching on the led
delay(200); // stopping the program for 200 milliseconds
digitalWrite(led, LOW); // switching off the led
delay(200); // stopping the program for 200 milliseconds
digitalWrite(led, HIGH); // switching on the led
delay(200); // stopping the program for 200 milliseconds
digitalWrite(led, LOW); // switching off the led
delay(200); // stopping the program for 200 milliseconds
digitalWrite(led, HIGH); // switching on the led
delay(500); // stopping the program for 500 milliseconds
digitalWrite(led, LOW); // switching off the led
delay(500); // stopping the program for 500 milliseconds
digitalWrite(led, HIGH); // switching on the led
delay(500); // stopping the program for 500 milliseconds
digitalWrite(led, LOW); // switching off the led
delay(500); // stopping the program for 500 milliseconds
digitalWrite(led, HIGH); // switching on the led
delay(500); // stopping the program for 500 milliseconds
digitalWrite(led, LOW); // switching off the led
delay(500); // stopping the program for 500 milliseconds
digitalWrite(led, HIGH); // switching on the led
delay(200); // stopping the program for 200 milliseconds
digitalWrite(led, LOW); // switching off the led
delay(200); // stopping the program for 200 milliseconds
digitalWrite(led, HIGH); // switching on the led
delay(200); // stopping the program for 200 milliseconds
digitalWrite(led, LOW); // switching off the led
delay(200); // stopping the program for 200 milliseconds
digitalWrite(led, HIGH); // switching on the led
delay(200); // stopping the program for 200 milliseconds
digitalWrite(led, LOW); // switching off the led
delay(2000); // stopping the program for 2000 milliseconds to have a longer break
}
|