Engduino Lights Tutorial - Expert
This is a more challenging tutorial for manipulating the Engduino.
Repeat all of the steps on the first page of "Engduino Lights Tutorial - Basics".
You should end up looking at a blank loop action like this:
In this tutorial we'll create a cool
pattern with the LEDs. Let's start with
a for loop containing 2 if statements.
If the LED number is less than 8, it
will go yellow, otherwise it will go
red. Try the code on the right and run
it to see what it does!
Now let's fill all the LEDs with another
colour, one by one. We will use a while
loop this time, similar to the one in the last
tutorial, but this time we won't turn the
LEDs off. Run your code after you finish!
And now we'll split the LEDs in two again, this
time setting them to red and green.
Again, run your code! Programmers always like
to run their code to test it to make sure it works.
Now fill all the LEDs with a different colour, one
by one, similar to the task above.
You've now finished the Engduino Lights tutorials! Now that you understand how to communicate
with the Engduino, try creating some light shows of your own! Try to use some for and while loops
and if statements. Have fun!
This is what your whole code should look like: