#include #define START 0x08 #define MT_SLA_ACK 0x08 // ??????????? #define MT_DATA_ACK 0x08 // ????????? void init(void) { DDRB = 0xff; DDRC = 0xff; DDRD = 0xff; } void ms(int a) { int j, i; for (i = 0; i < a; i++) { for( j=0; j<526; j++);//1ms 1Mhz } } void ERROR (void) { PORTD = 45; ms(1); } int main(void) { for(;;) { init(); TWCR = (1 << TWINT) | (1 << TWSTA) | (1 << TWEN); //1 Startbit while (!(TWCR & (1<