Successfully Added To Cart

EXERCISE SOLUTIONS:

Question 1

Replace this line in the code (in both locations):

delay(500);

With these two lines of code:

randDelay = random(200-2000);
delay(randDelay);

Question 2

Here is just one option – this will turn on two LEDs at a time for ½ second each.
Replace the entire section of code inside the curly braces, { }, in the void loop() with this new code:

digitalWrite (led1,HIGH);
digitalWrite (led2,HIGH);
delay(500);

digitalWrite (led1,LOW);
digitalWrite (led2,LOW);
digitalWrite (led3,HIGH);
digitalWrite (led4,HIGH);
delay(500);

digitalWrite (led3,LOW);
digitalWrite (led4,LOW);
digitalWrite (led5,HIGH);
digitalWrite (led6,HIGH);
delay(500);

digitalWrite (led5,LOW);
digitalWrite (led6,LOW);
digitalWrite (led7,HIGH);
digitalWrite (led8,HIGH);
delay(500);

digitalWrite (led7,LOW);
digitalWrite (led8,LOW);

If you have figured out another way to do this, we’d love for you to share your solution with the rest of the Creation Crate Community. You can do that by posting here: https://www.facebook.com/groups/creationcrate/

Monthly Challenge

Download the word document "Monthly Challenge Answer" above!

Google Tracking
Pinterest Tracking