diff options
Diffstat (limited to 'src/main.cc')
-rw-r--r-- | src/main.cc | 16 |
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 |