BUTTON Command
jean
Posts: 21
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
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
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
·
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
·