My sketch is an attempt at placing a blink in a section of code for debugging. It looks clean to me but won't compile. The board is working for other projects. I was trying to develop a simple function to be added to a custom library to use during troubleshooting.
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560.
The sketch:
int Pin = 13;
void Setup() {
pinMode(Pin,OUTPUT);
}
void Loop(){
Bleep;
return(0);
}
void Bleep(int Pin){
digitalWrite(Pin,HIGH);
delay(1000);
digitalWrite(Pin, LOW);
delay(1000);
}