summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-01-26 13:34:56 +0100
committerDaniel Friesel <derf@finalrewind.org>2016-01-26 13:34:56 +0100
commit02b15618cdf0c459d0ba68c85ce56decc96c0563 (patch)
tree0110e85aa5f5de1d72a2fe02a82347da8c6d6066 /src/main.cc
parent0ed103d8a4e7b313ca699c9f448f69cc57cb4792 (diff)
add structs/typedefs for text and animation data
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.cc b/src/main.cc
index 8ca3e21..fad0c8e 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -12,6 +12,9 @@
int main (void)
{
+ text ohai;
+ ohai.str = (char *)"Ohai! ";
+
// disable ADC to save power
PRR |= _BV(PRADC);
@@ -21,7 +24,7 @@ int main (void)
// Enable pull-ups on PC3 and PC7 (button pins)
PORTC |= _BV(PC3) | _BV(PC7);
- display.setString("Ohai! ");
+ display.show(ohai);
display.enable();
modem.enable();