I dont understand what all this stuff with yy is for.
Why not use something like this:
Code:if portb.7=1 then ' If button is pressed: toggle portb.1 ' Toggle the LED loop: if portb.7=1 then goto loop ' Wait until the button is released endif
I dont understand what all this stuff with yy is for.
Why not use something like this:
Code:if portb.7=1 then ' If button is pressed: toggle portb.1 ' Toggle the LED loop: if portb.7=1 then goto loop ' Wait until the button is released endif
Bookmarks