Hi Mugel,
IF you have enough ports THEN . . .
MyVar var byte
If PortA.0 != 0 Then
my var = 0
else If portA.1 != 0 then
myvar = 1 . . . . and so on
here is another way using analog inputs
http://www.romanblack.com/keypad.htm
Hi Mugel,
IF you have enough ports THEN . . .
MyVar var byte
If PortA.0 != 0 Then
my var = 0
else If portA.1 != 0 then
myvar = 1 . . . . and so on
here is another way using analog inputs
http://www.romanblack.com/keypad.htm
Last edited by Archangel; - 10th November 2006 at 01:15.
Bookmarks