Shop OBEX P1 Docs P2 Docs Learn Events
DEBUGIN question — Parallax Forums

DEBUGIN question

RocketeerRocketeer Posts: 3
edited 2010-03-11 18:27 in BASIC Stamp
When the BS runs without being connected to a PC, it ignors DEBUG statements (right?).
How does the BS handle DEBUGIN when not connected to a PC?

I would like my program to have a menu when plugged into the PC, but to just skip it if not connected to a PC.· How do I get that to happen?

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2010-03-10 18:40
    DEBUGIN hangs if there's no PC present just like it hangs waiting for you to enter something even if there's a PC present.

    You could use SERIN 16 instead of DEBUGIN and include a timeout in the SERIN statement. Read the descriptions of DEBUGIN and SERIN in the BASIC Stamp Syntax and Reference Manual.
  • RocketeerRocketeer Posts: 3
    edited 2010-03-11 18:27
    The SERIN 16 command worked very well.· Thank You!
Sign In or Register to comment.