Lucas Harlem
01-28-2006, 09:45 PM
I am using several button command statements to make a basic keypad.
I have nine buttons 1 - 9 for a keypad.
When a button is pressed say for example key 1, it branches to that address and shifts out a 4 bit nibble to a shift register which is in turn connected to a seven segment dual digit display. Okay works great, but when I try to press another button it doesn't work. How do I clear this variable workspace that button uses? Should each button have a different workspace variable.
For example: Should button 1 use BN1 as its variable workspace?
and Should Button 2 use BN2 as its variable workspace? etc etc
This
BUTTON 1,0,255,255,BN1,1,Adr1
BUTTON 2,0,255,255,BN1,1,Adr2
Or
BUTTON 1,0,255,255,BN1,1,Adr1
BUTTON 2,0,255,255,BN2,1,Adr2
Is there a way to clear this button variable without resetting the stamp?
Post Edited (Lucas Harlem) : 1/28/2006 2:48:40 PM GMT
I have nine buttons 1 - 9 for a keypad.
When a button is pressed say for example key 1, it branches to that address and shifts out a 4 bit nibble to a shift register which is in turn connected to a seven segment dual digit display. Okay works great, but when I try to press another button it doesn't work. How do I clear this variable workspace that button uses? Should each button have a different workspace variable.
For example: Should button 1 use BN1 as its variable workspace?
and Should Button 2 use BN2 as its variable workspace? etc etc
This
BUTTON 1,0,255,255,BN1,1,Adr1
BUTTON 2,0,255,255,BN1,1,Adr2
Or
BUTTON 1,0,255,255,BN1,1,Adr1
BUTTON 2,0,255,255,BN2,1,Adr2
Is there a way to clear this button variable without resetting the stamp?
Post Edited (Lucas Harlem) : 1/28/2006 2:48:40 PM GMT