Rev 542 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 542 | Rev 544 | ||
---|---|---|---|
Line 94... | Line 94... | ||
94 | //unsigned int timer2 = 0; |
94 | //unsigned int timer2 = 0; |
95 | DDRB = 0x00; |
95 | DDRB = 0x00; |
96 | PORTB = 0x00; |
96 | PORTB = 0x00; |
97 | for(timer = 0; timer < 1000; timer++); // verzögern |
97 | for(timer = 0; timer < 1000; timer++); // verzögern |
98 | if(PINB & 0x01) PlatinenVersion = 11; else PlatinenVersion = 10; |
98 | if(PINB & 0x01) PlatinenVersion = 11; else PlatinenVersion = 10; |
99 | // Salvo 9.12.2007 PC4 als Ausgang |
99 | // Salvo 9.12.2007 PC6 als Ausgang |
100 | // DDRC = 0x81; // SCL |
100 | // DDRC = 0x81; // SCL |
101 | DDRC = 0x81; // SCL und PC4 |
101 | DDRC = 0xC1; // SCL und PC6 als Ausgang |
102 | PORTC = 0xff; // Pullup SDA |
102 | PORTC = 0xff; // Pullup SDA |
103 | DDRB = 0x1B; // LEDs und Druckoffset |
103 | DDRB = 0x1B; // LEDs und Druckoffset |
104 | PORTB = 0x01; // LED_Rot |
104 | PORTB = 0x01; // LED_Rot |
105 | DDRD = 0x3E; // Speaker & TXD & J3 J4 J5 |
105 | DDRD = 0x3E; // Speaker & TXD & J3 J4 J5 |
106 | DDRD |=0x80; // J7 |
106 | DDRD |=0x80; // J7 |