Shop OBEX P1 Docs P2 Docs Learn Events
BUTTON Command — Parallax Forums

BUTTON Command

jeanjean Posts: 21
edited 2006-06-12 18:21 in General Discussion
I have a keypad but it's not a matrix type
When a button is pressed a high signal is sent to the input pin
With my basic stamp I was able to use the BUTTON command to listen to all my buttons

Now I'm wondering what is the equivalent in SX/B

Thank you

Comments

  • BeanBean Posts: 8,129
    edited 2006-06-12 17:19
    Jean,
    The PBASIC button command has limited uses.
    It is often misunderstood and misused.
    If you describe what you need, I'm sure it can be done.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Cheap 4-digit LED display with driver IC·www.hc4led.com

    Low power SD Data Logger www.sddatalogger.com

    "I reject your reality, and substitute my own." Mythbusters
    ·
  • BeanBean Posts: 8,129
    edited 2006-06-12 18:21
    Jean,
    I think all you need is debouncing for the switches. BUT the SX uses flash memory that is NOT cannot be changed by the SX when your program is running. So you would also need to use an external EEPROM.

    If you are only making one of these, I would stick to the Basic Stamp.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Cheap 4-digit LED display with driver IC·www.hc4led.com

    Low power SD Data Logger www.sddatalogger.com

    "I reject your reality, and substitute my own." Mythbusters
    ·
Sign In or Register to comment.