valerionew / ht1621-7-seg

arduino library for 7-segment lcd based on ht1621 drivers
Other
19 stars 13 forks source link

exponential print #12

Open valerionew opened 4 years ago

valerionew commented 4 years ago

Printing in the for of 123E45 and 123E-4 should be possible with a 7 segment LCD

pk commented 3 years ago

Now when there is possibility to print characters... this could probably be quite easily possible using sprintf("%E", ), right?

pk commented 3 years ago

Well apparently not as Arduino does not support those formats so the function dtostre could be used but the output will be very often longer than 6 digits so it would need probably special handling.

valerionew commented 3 years ago

As you stated, Arduino does not support snprintf without changing compiler settings, and that would make impossible to install this as a library, so another implementation has to be found

RobTillaart commented 8 months ago

@valerionew @pk Although an old issue, you might have a look at - https://github.com/RobTillaart/printHelpers It supports several formats including exponential.