summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-02-21 20:19:55 +0100
committerDaniel Friesel <derf@finalrewind.org>2016-02-21 20:19:55 +0100
commit3a02241ad1fbd89a6603fb699989cb9f3c9b200d (patch)
treef8f3b88f27a38e6ccc7097d37c0dcd82f2234dac /src/main.cc
parentd75a6cd36db515a0863a03480d8e5c589a235e22 (diff)
add animation load function -- untested, needs I2C debugging first
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc24
1 files changed, 1 insertions, 23 deletions
diff --git a/src/main.cc b/src/main.cc
index ae9ebc5..b42c12f 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -1,34 +1,12 @@
+#include <avr/io.h>
#include <stdlib.h>
-#include "display.h"
-#include "font.h"
-#include "storage.h"
-#include "fecmodem.h"
#include "system.h"
-animation_t ohai;
-
int main (void)
{
- ohai.type = AnimationType::TEXT;
- ohai.speed = (2 << 4) + 15;
- ohai.data = (uint8_t *)" Ohai \001";
- ohai.length = 8;
- ohai.delay = (0 << 4) + 0; // -> 4bit 0 remains 0
-
- uint8_t anim_data[] = { 0x80, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02, 0x01, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80 };
-
- animation_t test;
- test.type = AnimationType::FRAMES;
- test.speed = 14;
- test.length = 2*8;
- test.data = anim_data;
- test.delay = (1 << 4);
-
rocket.initialize();
- display.show(&ohai);
-
while (1) {
// nothing to do here, go to idle to save power
SMCR = _BV(SE);