Rev 2146 | Rev 2191 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2146 | Rev 2183 | ||
---|---|---|---|
Line 120... | Line 120... | ||
120 | 120 | ||
121 | DDRB = 0x00; |
121 | DDRB = 0x00; |
122 | PORTB = 0x00; |
122 | PORTB = 0x00; |
123 | for(timer = 0; timer < 1000; timer++); // verzögern |
123 | for(timer = 0; timer < 1000; timer++); // verzögern |
- | 124 | #if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__)) |
|
- | 125 | ||
- | 126 | if(PINB & 0x02) PlatinenVersion = 21; |
|
- | 127 | else |
|
124 | #if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__)) |
128 | { |
- | 129 | PlatinenVersion = 22; |
|
- | 130 | ACC_AMPLIFY = 7; // der ACC-Sensor hat etwa 16% weniger Ausschlag |
|
- | 131 | } |
|
125 | PlatinenVersion = 21; |
132 | |
126 | #else |
133 | #else |
127 | if(PINB & 0x01) |
134 | if(PINB & 0x01) |
128 | { |
135 | { |
129 | if(PINB & 0x02) PlatinenVersion = 13; |
136 | if(PINB & 0x02) PlatinenVersion = 13; |