Go Down

Topic: Serial.print and Serial.println are different ... (Read 747 times) previous topic - next topic

wiikii

Serial - print handles byte and unsigned int, not so does println.
I think a function like the following is missing. Isn't it?

void HardwareSerial::println(unsigned int n)
{
 print(n);
 println();
}

But there is an declaration for uint8_t.

By the way ... How can I recompile or use changes in the libraries in Ardunio 0010?

thanks for answering.

regards

mellis

The function:

void HardwareSerial::println(unsigned int n)

will be in Arduino 0011.

To change things in hardware/cores/arduino, just edit the files.  Next time you compile or upload your program, it should use the new source.  To change things in hardware/libraries, you either need to delete the .o files or switch boards (in the Tools > Boards menu).


Go Up