Assignment 2.2

posted Jun 20, 2010, 2:52 PM by Unknown user

code for LED wave:

void setup() // run once, when the sketch starts{ // even though there's nothing in it } // we still need this process

void loop() // run over and over again{ for (int ledPin = 13; ledPin >= 4; ledPin--) // Declares ledPin, // tests if equal to or greater than 4 // then does the following. It repeats // but decreases the value of ledPin by 1