Unfortunately the tutorial that I linked which is on the Arduino website also ignores resistors. Very bad!
.