summaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-08-15 14:36:25 +0200
committerDaniel Friesel <derf@finalrewind.org>2018-08-15 14:36:25 +0200
commit720d72a7dc083835475f6cd3e82a1800d43a6671 (patch)
treebf06803e93bea631333ae2778eeb7562d5d2e442 /src/app
parent231fcce3dce0d83a291e0239efe13fe37ff735a8 (diff)
i2cbench: write benchmark
Diffstat (limited to 'src/app')
-rw-r--r--src/app/i2cbench/main.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/app/i2cbench/main.cc b/src/app/i2cbench/main.cc
index 5825c0b..c9c2b70 100644
--- a/src/app/i2cbench/main.cc
+++ b/src/app/i2cbench/main.cc
@@ -44,11 +44,9 @@ void loop(void)
kout << endl;
#endif
#ifdef DRIVER_EEPROM24LC64
- char buf[33];
static unsigned short page = 0;
- eeprom24lc64.readPage(page, buf);
- buf[32] = '\0';
- kout << "Address " << page << ": " << buf << endl;
+ eeprom24lc64.writePage(page, "Hello, World! Und so weiter, lol");
+ kout << "Address " << page << endl;
page = (page + 32) % (256*32);
#endif
#ifdef DRIVER_MMSIMPLE