Devices & Components
Arduino Uno Rev3
LED (generic)
Hardware & Tools
10 Pc. Jumper Wire Kit, 5 cm Long
Breadboard, 170 Pin
Software & Tools
Arduino IDE
Project description
Code
S.O.S Code
arduino
1int ledPin = 13; 2 3void setup() 4{ 5pinMode(ledPin, OUTPUT); 6 7} 8void flash(int duration) 9{ 10digitalWrite(ledPin, HIGH); 11delay(duration); 12digitalWrite(ledPin, LOW); 13delay(duration); 14 15} 16 17void loop() 18{ 19flash(200); flash(200); flash(200); 20 21delay(300); 22 23flash(500); flash(500); flash(500); 24 25flash(200); flash(200); flash(200); 26 27delay(1000); 28 29}
S.O.S Code
arduino
1int ledPin = 13; 2 3void setup() 4{ 5pinMode(ledPin, OUTPUT); 6 7} 8void flash(int duration) 9{ 10digitalWrite(ledPin, HIGH); 11delay(duration); 12digitalWrite(ledPin, LOW); 13delay(duration); 14 15} 16 17void loop() 18{ 19flash(200); flash(200); flash(200); 20 21delay(300); 22 23flash(500); flash(500); flash(500); 24 25flash(200); flash(200); flash(200); 26 27delay(1000); 28 29}
Downloadable files
The schematic
The schematic

Comments
Only logged in users can leave comments