File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Example7_AutoDetectionTest Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -56,9 +56,9 @@ void setup()
5656 Serial.print (" Detected pageSizeBytes: " );
5757 Serial.println (myMem.detectPageSizeBytes ());
5858
59- // detectWriteTimeMs is *not* automatically called at begin() and is
60- // generally not needed. Write times are guaranteed to be under 5ms ,
61- // and we use polling by default so its use is limited .
59+ // The EEPROM write time is 5 ms for all EEPROMs currently manufactured.
60+ // Automatically detecting the write time is therefore not generally needed ,
61+ // but it's here if needed .
6262 Serial.print (" Detected page write time (ms): " );
6363 Serial.println (myMem.detectWriteTimeMs ());
6464
Original file line number Diff line number Diff line change @@ -126,14 +126,14 @@ void setup()
126126 myMem.write (0 , myValue1); // (location, data)
127127
128128 byte myRead1 = myMem.read (0 );
129- Serial.print (" I read: " );
129+ Serial.print (" I read (should be 200) : " );
130130 Serial.println (myRead1);
131131
132132 int myValue2 = -366 ;
133133 myMem.put (10 , myValue2); // (location, data)
134134 int myRead2;
135135 myMem.get (10 , myRead2); // location to read, thing to put data into
136- Serial.print (" I read: " );
136+ Serial.print (" I read (should be -366) : " );
137137 Serial.println (myRead2);
138138
139139 if (myMem.getMemorySizeBytes () > 16 )
@@ -142,7 +142,7 @@ void setup()
142142 myMem.put (20 , myValue3); // (location, data)
143143 float myRead3;
144144 myMem.get (20 , myRead3); // location to read, thing to put data into
145- Serial.print (" I read: " );
145+ Serial.print (" I read (should be -7.35) : " );
146146 Serial.println (myRead3);
147147
148148 String myString = " Hi, I am just a simple test string" ; // 34 characters
You can’t perform that action at this time.
0 commit comments