Shop OBEX P1 Docs P2 Docs Learn Events
Entering data thru Debug — Parallax Forums

Entering data thru Debug

In trying to learn the new P2, I keep running into things that don't work the same, especially in debug. For instance I found it handy to enter data into my program for debugging the P1, using the Parallax Serial Terminal (PST).

pst.str(String(pst#NL))
pst.str(String(pst#NL,"Enter(1) or Retrieve(0) "))
action:= pst.decin

How would one accomplish this with P2 Debug?

Comments

  • In debug there is currently no way to enter data from keyboard.

    But you can still use something similar to the PST object like jm_fullduplexserial and use the Parallax Serial Terminal.
    Drawback is, that you can't use debug then.

    But things are going to change in future.

  • Oh ... and it is easy to attach a USB keyboard.

    So other option would be to use debug for output and a keyboard attached to the P2 as input.

  • Just the answer I was looking for, but not quite the one I was hoping for. Looks like I have to come up with a new idea for teaching myself.

Sign In or Register to comment.