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

buttons

jcleaverjcleaver Posts: 17
edited 2006-03-02 12:03 in BASIC Stamp
·is there a simple way using the following

btnbus··· var·· inb


of reversing the buttons so 1=0· 0=1 ect (not wiring)

Comments

  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2006-03-01 05:34
    I suppose there is or will be a NOT function. If this can be done at the BIT level, that is it.
    It doesn't get much simpler.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "When all think alike, no one is thinking very much.' - Walter Lippmann (1889-1974)

    ······································································ Warm regards,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-03-01 06:41
    Kramer I think this post is in the wrong forum.· I believe it is regarding the BASIC Stamp.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • jcleaverjcleaver Posts: 17
    edited 2006-03-01 14:47
    yes it is a bs2x

    good quote though

    thanks
    still looking
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-03-01 19:42
    This thread is being moved from the Propeller Forum to the BASIC Stamp Forum.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2006-03-01 19:56
    You can use ~ (see Unary Operators) to invert the bit/s.
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2006-03-02 11:43
    That little red thingy is a Tilde mark [noparse][[/noparse]the top left key of the key board].

    I can barely see it. Something about the color and shape does funny things to my screen.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "When all think alike, no one is thinking very much.' - Walter Lippmann (1889-1974)

    ······································································ Warm regards,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2006-03-02 12:03


    ·~
    ·
Sign In or Register to comment.