Shop OBEX P1 Docs P2 Docs Learn Events
controling two pins at one time — Parallax Forums

controling two pins at one time

Rutcgr18Rutcgr18 Posts: 47
edited 2011-12-08 13:41 in BASIC Stamp
Its been a while since i have played with the BS2 I need to turn on 2 pins at the same time. I rember doing something like HIGH %00001110000 or somthing like that.
Any help would be great
Thanks
Mike

Comments

  • Tracy AllenTracy Allen Posts: 6,662
    edited 2011-12-08 11:42
    dirs = $0FFF ' 1 for all pins to be made outputs
    outs =  $00D0  ' highs & lows
    
  • RiJoRiRiJoRi Posts: 157
    edited 2011-12-08 13:23
    Rutcgr18 wrote: »
    Its been a while since i have played with the BS2 I need to turn on 2 pins at the same time. I remeber doing something like HIGH %00001110000 or somthing like that.
    Any help would be great
    Thanks
    Mike

    Mike --
    Open the Stamp Editor, and click on the Help button. Select Index and type in OUTS. Double-click OUTS and you'll get a lot of information. Using %0000000011100000 will set the 6th through eighth bits, and clear the others.

    HTH,
    --Rich
  • ercoerco Posts: 20,256
    edited 2011-12-08 13:41
    high 1:high 2

    works pretty quick, too! :)
Sign In or Register to comment.