7219 display driver with decimal points?
RottenJalapeno
Posts: 27
I·can get the 7219 do display numbers just fine, but for the life of me I cannot get it to put a decimal point on the display.· does anyone know how one would accomplish such a feat?··
Comments
Dave
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Dave Andreae
Parallax Tech Support·
·
·· The code from the following project makes use of the Decimal points for non-decimal point use, but shows how easy it is to turn one on for a value and conditionally.· I hope this helps.· Take care.
http://forums.parallax.com/showthread.php?p=552892
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
Maxdisplay:
· FOR index = 5 TO 1
··· SHIFTOUT DATA_n,CLK2,MSBFIRST,[noparse][[/noparse]index]
··· temp = dispVal DIG(index-1)
··· IF index <> 4 THEN· skip1
··· temp = temp + 128·············· 'Add decimal point to no 4 (00.000)
skip1:
··· SHIFTOUT DATA_n,CLK2,MSBFIRST,[noparse][[/noparse]temp]
··· PULSOUT load,5
· NEXT
RETURN