Advertisement
Guest User

Untitled

a guest
Sep 17th, 2012
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.60 KB | None | 0 0
  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)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement