MorganS:
Serial.print() works just fine inside setup(). Just make sure it occurs after the Serial.begin().Many Arduinos will reset when the Serial Monitor is opened, so you see the very first data printed with no delay. Others will not reset so you need some way of delaying the execution so that you can get the Serial Monitor connected. Have you heard of the delay() function?
I always use
ints for pin numbers as some day I'm expecting to see an Arduino with more than 255 pins. If you think that day will never come and you think that it's important for this loop to execute as fast as possible with the least memory usage, then you can usebyte.
Thanks, didn't know Serial.print would work outside of loop. Does this mean I can use it in global? Or above loop and setup?
Yes I am familar with delay.
Thanks for sharing I could use Byte or Int.
With byte one is just limited to 256 where int is in the 65,000 range and can be positive or negitive?