Hi,
I need to look at the innards of the serial.print/write functions so I can write them in C for another microcontroller. I can't seem to find the location of these functions anywhere. Anybody know where there are?
Thanks!
Hi,
I need to look at the innards of the serial.print/write functions so I can write them in C for another microcontroller. I can't seem to find the location of these functions anywhere. Anybody know where there are?
Thanks!
I don’t know if you are Windows, OSX or Linux user, but I think your are looking for this folder:
[Wherever is the “program files” folder]\Arduino\hardware\arduino\avr\cores\arduino
I’m kind of confused, because some Serial functions appear to be sparsed in multiple .cpp files…
print code is in Print.h/Print.cpp.
Regards,
Ray L.
Software or Hardware serial?
LarryD:
Software or Hardware serial?
It makes no difference. Both inherit from Print.h/Print.cpp, along with Wire, SPI, LCD, and countless others.
Regards,
Ray L.
You may also want to look at HardwareSerial.cpp and HardwareSerial.h.