Code from the Arduino tutorial.
