summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-01-15 20:27:22 +0100
committerDaniel Friesel <derf@finalrewind.org>2016-01-15 20:27:22 +0100
commit4c6cb2e5c4748502cbd26d3bd38e490ebead197f (patch)
tree4bf36680ef4fb9ee464d1a0699711f3f8bdc3e56 /src/main.cc
parentfd6f265cbc7270bd69b4f8b68d7ec6c436e67d39 (diff)
turn modem voltage divider off during sleep
needs hw revision >= git commit 71f427bd100963b1aafb545bfca319c50e1c48cd
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/main.cc b/src/main.cc
index eb523ce..03cdabd 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -33,8 +33,14 @@ int main (void)
// raise timer interrupt on counter overflow (-> interrupt frequency = ~4kHz)
TIMSK0 = _BV(TOIE0);
- disp[0] = 0xff;
- disp[1] = 0xaa;
+ disp[0] = 0x01;
+ disp[1] = 0x02;
+ disp[2] = 0x04;
+ disp[3] = 0x08;
+ disp[4] = 0x10;
+ disp[5] = 0x20;
+ disp[6] = 0x40;
+ disp[7] = 0x80;
#if 0
// smile!
@@ -72,7 +78,7 @@ int main (void)
disp[31] = 0x00;
#endif
- modem.init();
+ modem.enable();
sei();