ich habe das hier geschrieben:
uint8_t RC(uint8_t kanal)
{
if (kanal == 1)
{
while((PINA&);
timer=0;
while(!(PINA&);
return (timer);
}
if (kanal == 2)
{
while(!(PINA&4));
timer=0;
while(PINA&4);
return (timer);
}
return(0);
}
und da sagt er immer 0.
Lesezeichen