Shop OBEX P1 Docs P2 Docs Learn Events
Very new to SX/B and I need a little help — Parallax Forums

Very new to SX/B and I need a little help

ExilictExilict Posts: 31
edited 2004-11-20 05:08 in General Discussion
When programming in basic I can use a empty do loop to "prompt for input"· however I can't use it in SX/B.· I need a solution and am very new.· If there is a simple way to do this that I can't figgure out please let me know.

Thakns
·· Chris

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2004-11-19 05:32
    What is is that you want to do, specifically?· If you're waiting for an input to go to a specific level before moving on you could do this in SX/B:

    Main: 
      IF RA.0 = 1 THEN Main
    


    The code will loop to Main until RA.0 goes low.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas Office
  • ExilictExilict Posts: 31
    edited 2004-11-20 04:45
    Jon,
    I am just trying to do the same program I did in basic, for the SX/B. With a few modifications, but just trying to teach myself.... all over again :-D

    -X
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2004-11-20 05:08
    You may want to download Al Williams's book called Exploring the SX -- it's free and will help a lot; even has SX/B examples now.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas Office
Sign In or Register to comment.