Rev 993 | Rev 1036 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 993 | Rev 1021 | ||
---|---|---|---|
Line 122... | Line 122... | ||
122 | if(PINB & 0x01) |
122 | if(PINB & 0x01) |
123 | { |
123 | { |
124 | if(PINB & 0x02) PlatinenVersion = 13; |
124 | if(PINB & 0x02) PlatinenVersion = 13; |
125 | else PlatinenVersion = 11; |
125 | else PlatinenVersion = 11; |
126 | } |
126 | } |
- | 127 | else |
|
- | 128 | { |
|
- | 129 | if(PINB & 0x02) PlatinenVersion = 20; |
|
127 | else PlatinenVersion = 10; |
130 | else PlatinenVersion = 10; |
- | 131 | } |
|
- | 132 | ||
128 | DDRC = 0x81; // SCL |
133 | DDRC = 0x81; // SCL |
129 | PORTC = 0xff; // Pullup SDA |
134 | PORTC = 0xff; // Pullup SDA |
130 | DDRB = 0x1B; // LEDs und Druckoffset |
135 | DDRB = 0x1B; // LEDs und Druckoffset |
131 | PORTB = 0x01; // LED_Rot |
136 | PORTB = 0x01; // LED_Rot |
132 | DDRD = 0x3E; // Speaker & TXD & J3 J4 J5 |
137 | DDRD = 0x3E; // Speaker & TXD & J3 J4 J5 |