Quote:
Originally Posted by Ether
Code:
button1 = GetButton(button1);
if (button1 && ! button1previous) toggle1 = !toggle1;
button1previous = button1;
initialize toggle1 to zero.
|
Thank you. This is exactly what I was looking for but couldn't write myself

I assume that if you wanted to start with the motors running, I would initialize toggle as true?