Shop OBEX P1 Docs P2 Docs Learn Events
Seven Segment display — Parallax Forums

Seven Segment display

ThumbsThumbs Posts: 2
edited 2005-04-08 05:08 in BASIC Stamp
I am try to take a three digit sensor reading and display it to one seven segment display in sequential order.

Is it possible take a three digit variable and split it into three seperate variables and the display them one at a time· using·the bs2.· For example 125· having it display as a 1 then 2 then 5.

thank you

·

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-04-08 05:08
    Yep -- it's easy. Use the DIG operator to grab the individual digits from your number, then do a lookup of the segment values for that digit. Obviously, you'll need a short delay in between digits.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas, TX· USA
Sign In or Register to comment.