Shop OBEX P1 Docs P2 Docs Learn Events
7219 display driver with decimal points? — Parallax Forums

7219 display driver with decimal points?

RottenJalapenoRottenJalapeno Posts: 27
edited 2006-11-11 20:51 in BASIC Stamp
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?·· yeah.gif

Comments

  • dandreaedandreae Posts: 1,375
    edited 2006-11-11 00:33
    If you type in "decimal point and MAX7219" in the Google search located on the Parallax website www.parallax.com ·it will come up with Experiment 29, which will show you how to use the decimal point.

    Dave

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Dave Andreae

    Parallax Tech Support·
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-11-11 00:36
    Hello,
    ·
    ·· 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
  • Mohamed RefkyMohamed Refky Posts: 47
    edited 2006-11-11 16:23
    The decimal point is set by bit D7=1

    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
  • RottenJalapenoRottenJalapeno Posts: 27
    edited 2006-11-11 20:51
    Hey, thanks for the help guys... I'll give it a shot
Sign In or Register to comment.