Goal: Make eight LEDs dance. Dance LEDs, dance!
Array - An array lets you store a group of variables and refer to them by their position, or "index." ie. int ledPins[ ] = {2,3,4,5,6,7,8,9}; 2 = index 0, 9 = index 7
random(#) - Generates a random number between 0 and (# - 1).
Sources:
Vilros Ultimate Starter Kit Tutorial Sketches 1-12
No comments:
Post a Comment