wayoda / LedControl

An Arduino library for MAX7219 and MAX7221 Led display drivers
Other
464 stars 243 forks source link

Easiest way to display a number? #19

Closed TommySharpNZ closed 7 years ago

TommySharpNZ commented 8 years ago

Hey guys, if I have an integer something like 62581.... Is there an easy way to get it displayed on an 8 digit 7 segment setup?

Do I have to split it up into the individual numbers or is there some trick I can do? I've seen some code snippets that divide by stuff and break it into 8 digits but I'm not sure how I'd ignore leading zeros and not end up with displaying 00062581....

Any help would be appreciated.

Tommy

austindetzel commented 7 years ago

I'm having the same problem - NEED HELP

wayoda commented 7 years ago

Start from here: http://wayoda.github.io/LedControl/pages/software.html#7Seg

austindetzel commented 7 years ago

Thanks! I also found some help here http://stackoverflow.com/questions/4261589/howto-split-a-int-into-its-digits