Skip to main content
1 of 3
Majenko
  • 105.9k
  • 5
  • 82
  • 139
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!

Majenko
  • 105.9k
  • 5
  • 82
  • 139