Shop OBEX P1 Docs P2 Docs Learn Events
polling commands for the BS2? — Parallax Forums

polling commands for the BS2?

UlrichUlrich Posts: 11
edited 2007-12-21 22:15 in BASIC Stamp
In the Stamp manual that covers the various versions of the Stamp, there are commands involving "polling".· It seems this is only available for bs2p and higher.· Is there anything close to this available for the BS 2, which is what I have.· I'm hoping maybe for a workaround, or code someone might have developed since the manual came out.· Thanks, Ulrich

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-12-21 22:07
    Hello,

    The only option for the BS2 and other models before the BS2p is to interleave your code such that pins are checked in between longer groups of instructions. Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2007-12-21 22:15
    If you don't care about preserving variable values, you could arrange some external circuitry so the polled-for pin states trigger the /RESET pin. At the beginning of your program you would then read the pins to determine what to do next.

    -Phil
Sign In or Register to comment.