suggestion to add TOGGLE in digitalWrite()

what speed does it toggle at? (and what if I want it faster or slower)

:wink:

and it already keeps the state of the pin that is why

pin = !pin works
[edit]
oh nevermind, i just re-read that, yea I guess that could be more noob friendly than the above, so why not [/edit]