I want to port some of my programs to the Spark, but I find Spark is much different to standard C.
So I have a few questions about compatibility:
Is it possible to use all the C standard libs (stdlib, stdio, string, …) ?
Is there a way to use the C stream IO (like stdio) for serial ?
Many libraries use Serial.print or something for debugging. Is it possible to route Serial to Serial2 (hardware Uart) without modifying all the libraries code? Or what can be a more generic way to output strings to a dynamic “stream”?
Maybe like this (pseudocode, I don’t know how to do this for real):
stout=Serial; // or Serial2 or Telnet or whatever
The Serial-USB is bad for debugging with windows because everytime you reset the core, your terminal program (Putty) disconnects because the port disappears.
Can the Spark Serial Class be expanded with a printf function. I did my own serial_printf now, like described here in the community, but nicer would be a class function Serial.printf.