i just used the debounc a nother have made. i dont really know all that much about it.
Can you see what I meant ?
if(digitalRead(Buttonup) == LOW)
{
DebounceUp++;
}else
{
DebounceUp = 0;
ButtonUpPressed = false;
Toggle = false;
}
If you have pulldown resistors then the Buttonup pin will be LOW most of the time and DebounceUp will increment rapidly and in the else clause of the if/else setting ButtonUpPressed to false when the pin is HIGH does not make logical sense. Are you sure that you have pulldown resistors and not pullup resistors ?