Code to print int64_t and uint64_t for UNO (and maybe DUE) #1236

Open
RobTillaart opened this Issue Jan 19, 2013 · 3 comments

6 participants

@RobTillaart

In - http://arduino.cc/forum/index.php/topic,143584.0.html - I posted code to be able to print int64_t and uint64_t for the UNO.
Not tested on other platforms but the code is very straightforward,
Drawback is it adds 8KB to a sketch so placed some #ifdefs in the proposed code.

Rob

@ffissore ffissore added the New label Feb 27, 2014
@matthijskooijman matthijskooijman removed the New label Sep 11, 2014
@cmaglie cmaglie was assigned by ffissore Jul 1, 2015
@diegozaks

What's the status on this? Any updates?

@Chris--A

@RobTillaart
If this does not end up in the core I'd be happy to add it to my PrintEx lib. Thus giving you and easy way to use it without having to add it to the core on each update.

Is the 8Kb a flat addition or only when used? If it is added without using it, I think I may be able to mitigate this in PrintEx.

@RobTillaart

That code is from long long ago ;)

As far as I recall it only adds 8K when actually used. The linker is smart enough.

I had a quick look at the code again and I (still) propose the print9() version which has imho a good balance between footprint and speed and understandability.

@Chris--A
Feel free to add the code to your printEx library so it can be used. Please add a link to the forum thread above.

@Chris--A Chris--A referenced this issue in Chris--A/PrintEx Jul 23, 2016
Open

Add in capability to print 64-bit numbers. #18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment