Question: Write the program to control 6 LEDs blink in sequence as the LED state from the picture below (Left to right). After the LED no.

 Write the program to control 6 LEDs blink in sequence as

Write the program to control 6 LEDs blink in sequence as the LED state from the picture below (Left to right). After the LED no. 5 blink, the next LED will be restarted to LED no. 0 (Left hand side LED).

can you write like this for me

//Arduino pin 8 = PB0 //Arduino pin 9 = PB1 //Arduino pin 10 = PB2 //Arduino pin 11 = PB3 //Arduino pin A1 = PC1 void setup() { DDRB = 0b00001111; }

void loop() { PORTB = 0b00001001; delay(1000); PORTB = 0b00000110; delay(1000); }

DIGITAL (PWM-) TX1 RX0 OO UNO ARDUINO ON TX RX POWER ANALOG IN IDREF

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!