I have a very strange compiling error which is driving me crazy trying to work out what is going on. Hopefully someone on here can point out what might be happening..
I am in the middle of creating an Arduino project which involves activating relays and readings analogue values for testing reasons.
I am trying out a small section of code in a separate file just to get some readings.
when I try and compile it I get this error message:
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560.
I have attached the code.
I have narrowed the problem down to the final line of code "digitalWrite(K3,LOW);"
If I remove this it compiles fine. So it is like it is not allowing me to make the pin LOW which is bizarre since this should not be a problem and have never had this problem before...
Any ideas?
Thank you in advance.
sketch_feb27b.ino (634 Bytes)