|
Re: PBasic Probelm
You need two subroutines:
One for when the button state is up doing:
Set flag to 0
And the other when the button state is down doing:
Set flag to 1
(other stuff)
This way, the flag will be 1 if the button is pressed down.
Then at the top of the other button's code, put an if flag = 0 then,
so that code will not execute unless the button is up.
__________________
Shrenik Shah
Engineering Director
Team 115: Monta Vista Robotics
Congratulations to Mr. Shinta for winning Woodie Flowers at Silicon Valley!
|