hi guys
so Im working with a gps module. I want to write to a file two variables on the same line delimited by a coma. how can i achieve this? right now i have it so it writes latitude on one line and longitude on another. how can i combine the two variables in the println statement?
The printing routines are cut-down from standard C functionality
to fit on small microcontrollers, so no printf (which would link in all the various
print functions for every type).
You could define your own printf in terms of sprintf and print if you wanted it.
MarkT:
The printing routines are cut-down from standard C functionality
to fit on small microcontrollers, so no printf (which would link in all the various
print functions for every type).
You could define your own printf in terms of sprintf and print if you wanted it.
It depends on why you want to do it. If it is to tidy up the source code and perhaps make it more readable you could always put the statements in a function and call it with the values to be written as arguments.