egdinger / Arduino-rally-computer

My version of a rally computer
2 stars 0 forks source link

LED display freezes after 99.99 miles #6

Open egdinger opened 13 years ago

egdinger commented 13 years ago

The number on the LCD becomes garbled and freezes when the mileage to be displayed goes over 99.99 miles forward or -9.99 backwards.

This is related to how the Seven segment lcd librarys handles number larger than the display can display.

egdinger commented 13 years ago

Had a thought on this, if we just tell the LED library that we have more digits than we do, it should just shift them off into never never land leaving the last 4 digits displayed. This is the behavior that I want.

egdinger commented 13 years ago

Changing to a larger max digits doesn't work. The display is the first, msb, so the digits we want are shifted off, not the digit's we don't care about.