You need to put the code inside code tags. The post edit window # button above the smileys makes code tags.
Nick uses this deBounce function?
Do I read this right or does it not block execution until the button is pressed?
void deBounce ()
{
unsigned long now = millis ();
do
{
// on bounce, reset time-out
if (digitalRead (buttonPin) == LOW)
now = millis ();
}
while (digitalRead (buttonPin) == LOW ||
(millis () - now) <= debounceTime);
} // end of deBounce