Sunday, March 7, 2010

Task 32:

32) Same as 30 but also output the state of the button and the led to the serial screen. I might see on one line then: "button pressed ....led off".

if (buttonState == HIGH) {
Serial.println("button pressed ....led off");

same as before, only i'm adding a few more words.

No comments:

Post a Comment