summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-01-25 23:29:43 +0100
committerDaniel Friesel <derf@finalrewind.org>2016-01-25 23:29:43 +0100
commitf4fe825650e1eb30ad57963232047606ac034e5c (patch)
tree08f25b5ad0deacf77f7e2a9c51b17b79cd3e4240 /src/main.cc
parent55da79c69f302cd86f0776e127daae0a12f557d4 (diff)
refactor I2C class into Storage class. Work-in-progress.
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/main.cc b/src/main.cc
index 0fb68ff..8ca3e21 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -6,16 +6,12 @@
#include "display.h"
#include "font.h"
-#include "i2c.h"
+#include "storage.h"
#include "modem.h"
#include "system.h"
int main (void)
{
- char testbuf[] = "..Olol I2C extra lang bla foo wololo moep ";
- char testbuf2[32];
- testbuf[0] = 1;
- testbuf[1] = 0;
// disable ADC to save power
PRR |= _BV(PRADC);
@@ -29,17 +25,9 @@ int main (void)
display.enable();
modem.enable();
- i2c.enable();
+ storage.enable();
sei();
- //display.setString("tx");
-
- i2c.xmit(64, 0, (uint8_t *)testbuf, (uint8_t *)testbuf);
-
- //display.setString("rx");
-
- i2c.xmit(2, 64, (uint8_t *)testbuf, (uint8_t *)testbuf2);
- display.setString(testbuf2);
while (1) {
// nothing to do here, go to idle to save power