B b0rna New Member Dec 7, 2004 #1 hello, im having much trouble figuring out how to program a key. i need fo this code to do: if key on pin a0 is pressed, then go to this part of the program does anyone have a simple way of coding a button with if then statement? thank you
hello, im having much trouble figuring out how to program a key. i need fo this code to do: if key on pin a0 is pressed, then go to this part of the program does anyone have a simple way of coding a button with if then statement? thank you
techknow New Member Dec 8, 2004 #2 Code: test bcf portb btfss porta,0 goto test call ledtest ledtest movlw 0x01 movwf portb return end dood this will work fine
Code: test bcf portb btfss porta,0 goto test call ledtest ledtest movlw 0x01 movwf portb return end dood this will work fine