[SOLVED] 7 Segment driver MAX7219 : handling the dot on floating numbers #984
Replies: 9 comments
-
Posted at 2018-06-13 by @gfwilliams Hi - yes, it could definitely be tweaked. I guess you'd want Can you try adding this code after you have initialised the MAX7219 and trying again?
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-06-13 by @yerpj @gordon, I had to wait less than 16 minutes to read the solution from you... You are by far the most brilliant support ever! :) I don't have the module on hand right now but I will try your code tomorrow morning. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-06-13 by @gfwilliams No problem! Let me know if it works for you and I'll update the module's code with the new function :) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-06-14 by @yerpj it works like a charm! tested with
Everything is working as expected. Thank you very much @gordon !! Regarding the above testing, I think the module can be upgraded :) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-06-14 by @yerpj Whoops, I spoke a little quickly. I did not test a specific case when there is not sufficient digits to print the value: |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-06-14 by @gfwilliams I just tested that, and it's to be expected. Because of rounding, If you want full control over it, convert it to a string manually yourself and pass the string in - eg: I'll update the library with the new code :) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-06-14 by @yerpj
I didn't even thought this far. This seems to make sense. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-06-14 by @gfwilliams It's all updated now, so using |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-06-14 by @yerpj
Thank you very much, it works well! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2018-06-13 by @yerpj
Hi there,
I wonder if anyone has tried to handle the dot (".") LED for displaying floating numbers, using this piece of HW? https://www.espruino.com/MAX7219
In the MAX7219 datasheet, page 7 ( https://www.espruino.com/datasheets/MAX7219.pdf ) , it says
Which seems to allow handling the dot (DP).
Do you guys think the MAX7219 module could be upgraded in order to support displaying floating numbers?
Beta Was this translation helpful? Give feedback.
All reactions