Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
3 views1 page

3 Sequence

The document contains an Arduino sketch that sets up pins 5 to 8 as output. In the loop function, it sequentially turns on and off the pins with specific delays to create a blinking pattern. The pattern involves activating each pin in order with a delay between each activation and deactivation.

Uploaded by

kvcs1313
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

3 Sequence

The document contains an Arduino sketch that sets up pins 5 to 8 as output. In the loop function, it sequentially turns on and off the pins with specific delays to create a blinking pattern. The pattern involves activating each pin in order with a delay between each activation and deactivation.

Uploaded by

kvcs1313
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

void setup() {

int output;
pinMode(5,output);
pinMode(6,output);
pinMode(7,output);
pinMode(8,output);
// put your setup code here, to run once:

void loop() {
// put your main code here, to run repeatedly:
digitalWrite(5,HIGH);
delay(100);
digitalWrite(5,LOW);
delay(50);
digitalWrite(6,HIGH);
delay(100);
digitalWrite(6,LOW);
delay(50);
digitalWrite(7,HIGH);
delay(100);
digitalWrite(7,LOW);
delay(50);
digitalWrite(8,HIGH);
delay(100);
digitalWrite(8,LOW);
delay(50);
digitalWrite(9,HIGH);
delay(100);
digitalWrite(9,LOW);
delay(50);
digitalWrite(8,HIGH);
delay(100);
digitalWrite(8,LOW);
delay(50);
digitalWrite(7,HIGH);
delay(100);
digitalWrite(7,LOW);
delay(50);
digitalWrite(6,HIGH);
delay(100);
digitalWrite(6,LOW);
delay(50);
digitalWrite(5,HIGH);
delay(100);
digitalWrite(5,LOW);
delay(50);
}

You might also like