MOVED: What's wrong with my this code

This topic has been moved to Programming Questions.

http://arduino.cc/forum/index.php?topic=155126.0