Shop OBEX P1 Docs P2 Docs Learn Events
SERIN checking once — Parallax Forums

SERIN checking once

HuiHui Posts: 4
edited 2009-04-09 01:23 in Robotics
Dear Parallax Community,

I was wondering what the line of code is with SERIN to make it check for a signal once, much like a line in a for or do loop. I think we can do this by inserting a TIMEOUT condition, but our group has not been able to get the TIMEOUT condition working. As of now we are using this line of code:

SERIN PIN, BAUD, [noparse][[/noparse]WAIT("FINAL"), finalVal]

We essentially want to get rid of the waiting part, and having the SERIN check for an input in a loop.

Thanks!

Comments

  • HuiHui Posts: 4
    edited 2009-04-09 00:07
    Never mind, we found a different solution. Thanks.
  • FranklinFranklin Posts: 4,747
    edited 2009-04-09 01:23
    Hui said...
    Never mind, we found a different solution. Thanks.
    It would be helpful to others if you could tell us what solution you found. Thanks.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
Sign In or Register to comment.