Skip to content
Snippets Groups Projects
Commit 720d72a7 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

i2cbench: write benchmark

parent 231fcce3
No related branches found
No related tags found
No related merge requests found
...@@ -44,11 +44,9 @@ void loop(void) ...@@ -44,11 +44,9 @@ void loop(void)
kout << endl; kout << endl;
#endif #endif
#ifdef DRIVER_EEPROM24LC64 #ifdef DRIVER_EEPROM24LC64
char buf[33];
static unsigned short page = 0; static unsigned short page = 0;
eeprom24lc64.readPage(page, buf); eeprom24lc64.writePage(page, "Hello, World! Und so weiter, lol");
buf[32] = '\0'; kout << "Address " << page << endl;
kout << "Address " << page << ": " << buf << endl;
page = (page + 32) % (256*32); page = (page + 32) % (256*32);
#endif #endif
#ifdef DRIVER_MMSIMPLE #ifdef DRIVER_MMSIMPLE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment