I like having serial communication for debugging and testing purposes but after a while it takes away too much speed from the sketch.
Is it possible to have the Arduino ignore serial.print and serial.println throughout my code, without turning it into a comment or placing every serial printing inside for example "if(debug == true)" statements?
Thanks in advance.
#ifdef ENABLE_PRINTand#endifand then define or comment out#define ENABLE_PRINTat the top of ur file – benathon Apr 05 '15 at 12:20debugL1();,debugL2();etc, so you can choose how many details you want to "log". The macro's will though make it unable to change runtime, but at the advantage of not having runtime overhead. – aaa Oct 04 '16 at 20:04