summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc19
1 files changed, 1 insertions, 18 deletions
diff --git a/src/main.cc b/src/main.cc
index 5fa0c0d..5afa6d7 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -1,7 +1,3 @@
-#include <avr/io.h>
-#include <avr/interrupt.h>
-#include <avr/wdt.h>
-#include <util/delay.h>
#include <stdlib.h>
#include "display.h"
@@ -27,23 +23,10 @@ int main (void)
test.length = 2*8;
test.data = anim_data;
- // disable ADC to save power
- PRR |= _BV(PRADC);
-
- // dito
- wdt_disable();
-
- // Enable pull-ups on PC3 and PC7 (button pins)
- PORTC |= _BV(PC3) | _BV(PC7);
+ rocket.initialize();
display.show(&ohai);
- display.enable();
- modem.enable();
- storage.enable();
-
- sei();
-
while (1) {
// nothing to do here, go to idle to save power
SMCR = _BV(SE);