int led = 1;
You do know that pins 0 and 1 are the serial port don't you?
RTFM...
Take your pick.... Either use pin 1 for the LED OR use pin 1 for the serial connection. You can't do both!
int led = 1;
You do know that pins 0 and 1 are the serial port don't you?
RTFM...
Take your pick.... Either use pin 1 for the LED OR use pin 1 for the serial connection. You can't do both!