Ich würde aber folgendes bevorzugen:
while(1)
{
while(!(TWCR & 0b10000000)); //solange warten, bis was ankommt
output = TWSR;
lcd_clrscr();
lcd_gotoxy(0,0);
lcd_puts(itoa(output, buffer, 2));
_delay_ms(300);
}
Ich würde aber folgendes bevorzugen:
while(1)
{
while(!(TWCR & 0b10000000)); //solange warten, bis was ankommt
output = TWSR;
lcd_clrscr();
lcd_gotoxy(0,0);
lcd_puts(itoa(output, buffer, 2));
_delay_ms(300);
}
Lesezeichen