divmod10() : a fast replacement for /10 and %10 (unsigned)

drjiohnsmith:
'all' we need to do is document up and make available in a form every one can use easily.
thats that hard part,

How about the Print.cpp and Print.h Tom posted on reply #51 or I posted on #49 and #54 ?

All you have to do to use these is drop them into your Arduino's hardware/arduino/cores/arduino folder (or hardware/teensy/cores/teensy), replacing the Print.cpp and Print.h that are already there.

On a Mac, you'll need to control-click on Arduino and choose "show package contents", then navigate or search until you find the folder with Print.cpp and Print.h. I believe it's Contents/Resources/Java/hardware/arduino/cores/arduino, but I don't have a Mac handy at the moment to check.

Admittedly, the copy I posted on #54 had test code enabled. Here's a "final" version with all the test stuff commented, as ready-to-use as it gets. These are tested with Teensy but probably will work with official Arduino boards.

Print.cpp (8.64 KB)

Print.h (6.77 KB)