summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-02-01 20:55:10 +0100
committerDaniel Friesel <derf@finalrewind.org>2016-02-01 20:55:10 +0100
commit4bf560b6f3ef6089af04dfc56d078b9978496b07 (patch)
tree1cf523b8b6224de1305a5619f9373daa82085543 /src/main.cc
parent9d840bb688844458e7ba270ddbb1944d40c317ec (diff)
add animation delay support
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.cc b/src/main.cc
index 160406c..37dc8bd 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -12,16 +12,18 @@ int main (void)
{
ohai.type = AnimationType::TEXT;
ohai.speed = (2 << 4) + 15;
- ohai.data = (uint8_t *)"\001 Ohai ";
+ ohai.data = (uint8_t *)" Ohai \001";
ohai.length = 8;
+ ohai.delay = (0 << 4) + 0; // -> 4bit 0 remains 0
- uint8_t anim_data[] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0, 0, 0, 0, 0, 0, 0, 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();