Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
Hi all,
I've found if I use the default printf() statement to print to the debug console (USB serial) in a program with AnalogIn it causes a runtime error:
Here's the code: (based on a handbook example http://mbed.org/handbook/AnalogIn with printf added)
If instead I add:
Serial pc(USBTX, USBRX);
Then printf to this Serial it works ok.
pc.printf("LDR test program\n");
Is this a bug or if I've missed the reason by the simple printf should not work? :)
Thanks!
Neil.