Skip to content


Subversion checkout URL

You can clone with
Download ZIP


memory improvement of the print.cpp lib #1222

RobTillaart opened this Issue · 1 comment

4 participants


Many functions in the print.cpp lib use a int base as second argument. As bases above 255 are never seen all these params can be brought back to uint8_t base.

Furthermore the #digits for the printing of floats can also be an uint8_t

When testing a sketch it uses 14 bytes less (from 2006 bytes to 1992 bytes)

As print is a base class for several other classes this adds up.


Might be done together with other print.cpp fixes like - Issue 884 -

Posted some additional memory improvements of the print.cpp in the printNumber() and printFloat() in the thread mentioned. Together these remove >300 bytes from the print lib.

@ffissore ffissore added the New label
@matthijskooijman matthijskooijman removed the New label
@cmaglie cmaglie was assigned by ffissore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.