Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 17th, 2012  |  syntax: C++  |  size: 0.60 KB  |  views: 25  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #include <Wire.h>
  2. #include <ExternalEeprom.h>
  3. #include <External24cl256Eeprom.h>
  4.  
  5. // IO
  6. #include <Closeable.h>
  7. #include <InputStream.h>
  8. #include <ExternalEepromInputStream.h>
  9.  
  10. void setup() {
  11.   Serial.begin(9600);
  12.  
  13.   External24cl256Eeprom ee(0x50);
  14.   ExternalEepromInputStream eeis(&ee);
  15.  
  16.   Serial.print("Started at: ");
  17.   Serial.println(millis());
  18.  
  19.   while (eeis.available()) {
  20.     Serial.println(eeis.read(), HEX);
  21.   }
  22.   eeis.close();
  23.  
  24.   Serial.print("Finished at: ");
  25.   Serial.println(millis());
  26. }
  27.  
  28. void loop() {
  29. }
  30.  
  31. // Binary sketch size: 6114 bytes (of a 32256 byte maximum)
clone this paste RAW Paste Data