I was wondering if any one could tell me what this means
Arduino: 1.8.12 (Mac OS X), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"
NIGHTLIGHT:21:1: error: stray '\302' in program
if (currentButton == HIGH)
[u]
NIGHTLIGHT:21:2: error: stray '\240' in program
if (currentButton == HIGH)
[u]
exit status 1
stray '\302' in program
code:
if (currentButton == HIGH)
it probably means you copied and pasted the sketch from a web page that did not format the sketch correctly.
Could you take a few moments to Learn How To Use The Forum.
Other general help and troubleshooting advice can be found here.
It will help you get the best out of the forum in the future.
-
Copy your code and paste it in the reply box on this forum.
2)
Select the code in the reply box and copy it.
3)
Paste it in your sketch overwriting all existing code.
Note: you don't have to post; you might have to go to the preview after step (1), can't remember anymore.