Dann muss ichs nochmal probieren, denn das #define hat bei mir nix gebracht, habs wohl nicht richtig gemachtZitat von fluchtpunkt
PS:
Die Klammer fehlt (fett markiert)
while (1)
{
if (PINB && (1<<PB3))
{
if (++button_counter > DEBOUNCE_TIME )
{
PORTB ^= (1<<PB4);
}
}
else {
button_counter = 0;
}
}
Oder ist das hier nicht notwendig?
Andreas
Lesezeichen