Converting BS2 program to BS1
K O'N
Posts: 2
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
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
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
Thanks, Chris. That's fixed it.
Kevin