|
@@ -112,10 +112,10 @@ int main(void) {
|
112
|
112
|
|
113
|
113
|
wdt_enable(WDTO_500MS); // Enable watchdog reset after 500ms
|
114
|
114
|
|
115
|
|
- DDRD = 0xFC; // Mosfets as Output
|
116
|
|
- DDRB = 0xFE;
|
117
|
|
- DDRC = 0xFF; // Latch Enable
|
118
|
|
- DDRA = 0xFF; // Latch Data
|
|
115
|
+ DDRA = 0xFF; // Latch Data Bus as Output
|
|
116
|
+ DDRD = 0xFC; DDRB = 24; // Mosfets as Output
|
|
117
|
+ DDRC = 0xFC; DDRB |= 6; // Latch Enable as Output
|
|
118
|
+ DDRB &= ~(1 << PB0); // Pushbutton as Input
|
119
|
119
|
|
120
|
120
|
setImage(defaultImage); // Display something
|
121
|
121
|
|