Go Down

Topic: Compiler ignoring // (Read 463 times) previous topic - next topic

jcantellow



Compiler highlights this line

//pinMode(pinNumber,OUTPUT); //set pin to OUTPUT

Error message

expected ';' before '}' token

I added the // at the beginning of the line to try to get the Compiler to ignore it - didn't work.

pert

Please post your full sketch. If possible, you should always post code directly in the forum thread as text using code tags (</> button on the toolbar). This will make it easy for anyone to look at it, which will increase the likelihood of you getting help. If the sketch is longer than the forum will allow then it's OK to add it as an attachment. After clicking the "Reply" button, you will see an "Attachments and other settings" link.

When your code requires a library that's not included with the Arduino IDE please post a link (using the chain links icon on the toolbar to make it clickable) to where you downloaded that library from or if you installed it using Library Manger (Sketch > Include Library > Manage Libraries in the Arduino IDE or Libraries > Library Manager in the Arduino Web Editor) then say so and state the full name of the library.

Go Up