Shop OBEX P1 Docs P2 Docs Learn Events
Converting BS2 program to BS1 — Parallax Forums

Converting BS2 program to BS1

K O'NK O'N Posts: 2
edited 2007-02-19 19:05 in BASIC Stamp
Hi

I have what I suspect is a stupid simple question. Forgive me, I'm not a programmer at all, I'm looking this up as I go along. I have a code that works fine in the BS2. It does this:

Main:

IF IN1 = 1 THEN SUB1
IF IN3 = 1 THEN SUB2

GOTO MAIN

That's it; 1 and 3 have draw downs to vss, to hold them low. When they see a high input they go to the required subroutine. Works great.

Now I'm trying to make it work on a BS1. But the BS1 doesn't like IN1 =1 in an IF... THEN loop, it tells me it's an undefined symbol. What's the easiest work around for this?

thanks,

K O'N

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-02-18 20:33
    Hello,

    Please refer to the pin names for the BS1 in the memory section. They use PIN0 through PIN7 rather than IN0 through IN15. Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • K O'NK O'N Posts: 2
    edited 2007-02-19 19:05
    Hi

    Thanks, Chris. That's fixed it.

    Kevin
Sign In or Register to comment.