brunokc:
yes i have a 10k ohm resistor as puldown on both buttons.
If you have pulldown resistors in place then
if(digitalRead(Buttonup) == LOW)
{
DebounceUp++;
}else
{
DebounceUp = 0;
ButtonUpPressed = false;
Toggle = false;
}
does not make sense to me as the Buttonup pin will be LOW most of the time.
Maybe I have misunderstood what you are doing.