Shop OBEX P1 Docs P2 Docs Learn Events
BS2pe — Parallax Forums

BS2pe

TumblerTumbler Posts: 323
edited 2008-10-29 13:08 in BASIC Stamp
Hello,

Before i purchase a BS2pe:

Is it possible to program (lets say) bank 0 for moving the boebot and bank 1 for a object detection program and run both programs?

I have 2 such programs but can't prog it on a bs2 (memory full)

regards

Comments

  • allanlane5allanlane5 Posts: 3,815
    edited 2008-10-29 12:07
    Multi-bank programming uses the keyword "Run". The BS2 is NOT a "multi-tasking" operating system, so it only does one thing at a time.

    Having said that, there ARE bank-switching schemes, using "Run" (NOT Goto, and NOT Gosub) which will let you utilize multiple 2K program eeprom slots.

    Lookup "Run" in the help manual for more detail.
  • TumblerTumbler Posts: 323
    edited 2008-10-29 12:35
    Ok Allen,
    Like i said 'before i purchase one'
    I know that my 2 programs needs ~2k of memory.
    So it's possible than to switch each program.
    Example: move boebot to a point, switch to other prog and scan area. Than drive to another point.
  • allanlane5allanlane5 Posts: 3,815
    edited 2008-10-29 12:42
    Oh sure, but you can download the IDE for free, and click the little "check" icon to verify it will compile, and that the code will fit.

    And that will also give you access to the 'help' file.

    Bottom line -- using the "Run" interface is a little slow (compared to GOTO or GOSUB) but your scenario should work.
  • TumblerTumbler Posts: 323
    edited 2008-10-29 13:08
    ok thank you
Sign In or Register to comment.