Most recent activity
It's all updated now, so using disp.set without that extra bit of code I gave you should work fine :)
Thank you very much, it works well!
I just tested that, and it's to be expected. Because of rounding, 99999999.1 ends up turning into 99999999.09999999403 when converted to a string with toString, and it's the last few digits that get shown.
I didn't even thought this far. This seems to make sense. Thanks!
Whoops, I spoke a little quickly. I did not test a specific case when there is not sufficient digits to print the value:
On the display, the value
99999403is displayed instead.
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 :)
@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.
Again, thank you for the excellence of the support!
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
When the code B decode mode is used, the decoder
looks only at the lower nibble of the data in the digit
registers (D3–D0), disregarding bits D4–D6. D7, which
sets the decimal point (SEG DP), is independent of the
decoder and is positive logic (D7 = 1 turns the decimal
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?