Rev 921 | Rev 930 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 921 | Rev 927 | ||
---|---|---|---|
Line 117... | Line 117... | ||
117 | DDRB = 0x00; |
117 | DDRB = 0x00; |
118 | PORTB = 0x00; |
118 | PORTB = 0x00; |
119 | for(timer = 0; timer < 1000; timer++); // verzögern |
119 | for(timer = 0; timer < 1000; timer++); // verzögern |
120 | if(PINB & 0x01) |
120 | if(PINB & 0x01) |
121 | { |
121 | { |
122 | if(PINB & 0x02) PlatinenVersion = 12; |
122 | if(PINB & 0x02) PlatinenVersion = 13; |
123 | else PlatinenVersion = 11; |
123 | else PlatinenVersion = 11; |
124 | } |
124 | } |
125 | else PlatinenVersion = 10; |
125 | else PlatinenVersion = 10; |
126 | DDRC = 0x81; // SCL |
126 | DDRC = 0x81; // SCL |
127 | PORTC = 0xff; // Pullup SDA |
127 | PORTC = 0xff; // Pullup SDA |