
Originally Posted by
aherrera
I am not checking every pin; I am using the button command so I can de-bounce the switches.
Ok button command is overrated and too complicated.
i am not home and do not have the manual with me so bear with me if I error.
Code:
myVar var byte[5]
myVar.0 = portB.0
myVar.1 = portB.1
myvar.2 = portB.2
myvar.3 = portB.3
myvar.4 = portB.4
check:
if myVar != 0 then pause 50
if myVar != 0 then
select case myvar
case 0 goto check
case1 ' button1 pushed
do something . . . fish
case2 ' button2 pushed
do something . . .cut bait
case3 ' 2 buttons pushed
do another something . . . look for better lake
case 4 ' button3 pushed
. . .
case 7 ' 3 buttons pushed
do or not do you decide
case else
goto check
end select
endif
else
goto check
some of the syntax may be incorrect above but it should steer you to what you are wanting
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks