I am trying to debug a sketch that uses several libraries and I would like to use Serial.print from within the library but nothing is being printed to the Serial monitor. I've tried using Serial.begin(9600) from within the library file and just in the sketch file and both. What do I need to do to print from a function within a library file?
Go on. You have 93 posts under your belt.
Put Serial.begin(9600);
into your setup() function.
I always follow this with a Serial.println("Hello Project Name");
to verify that it is working.
The same applies to any project whether it is LED, LCD, OLED, ...
You can remove it later if you want but for debug purposes it shows how far your program has got.
David.
Sorry I thought I had a big problem but I simply had the other functions called before the Serial.begin command was processed. Thanks.