From f4fe825650e1eb30ad57963232047606ac034e5c Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 25 Jan 2016 23:29:43 +0100 Subject: refactor I2C class into Storage class. Work-in-progress. --- src/main.cc | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'src/main.cc') 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 -- cgit v1.2.3