Wawa:
#define button 1Assuming this is an Uno.
Then you shouldn't use pin1.
That pin is already used by the USB<>Serial chip.Also avoid pin13 if you can. It could 'flash' during bootup.
Leo..
Agreed, i too would not use those, but i just wanted to follow his pin format, which seems to be all the odd pins except 3, im not sure why his is using those exact pins but whatever
.