In my sketch, I wanted to separate sections of code to make it easier to see where individual sections begin. To do this, I commented out a name, such as //NEW SECTION, and then I commented an underline below it, like //-------------\
I got all sorts of compile errors such as "'Serial' was not declared in this scope" and stuff like that.
I got rid of the \ at the end of //-----------------\ and it compiles fine. Any idea what the compiler doesn't like about that?
Just curious. I certainly can avoid doing it. Just thought it looked pretty.
I did quite a bit of searching around for why a backslash will cause an error, but all I've seen is it mentioned that backslashes "can sometimes cause errors".
I am assuming that the - followed by the \ is what causes the error, but just wondering why.
If you had posted your code, and the error message, rather than excerpting with "all sorts of compile errors" then we might have been able to see the exact problem.
If you had posted your code, and the error message, rather than excerpting with "all sorts of compile errors" then we might have been able to see the exact problem
I disagree - the problem is evident in the thread title!