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()
56
56
Serial.print (" Detected pageSizeBytes: " );
57
57
Serial.println (myMem.detectPageSizeBytes ());
58
58
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 .
62
62
Serial.print (" Detected page write time (ms): " );
63
63
Serial.println (myMem.detectWriteTimeMs ());
64
64
Original file line number Diff line number Diff line change @@ -126,14 +126,14 @@ void setup()
126
126
myMem.write (0 , myValue1); // (location, data)
127
127
128
128
byte myRead1 = myMem.read (0 );
129
- Serial.print (" I read: " );
129
+ Serial.print (" I read (should be 200) : " );
130
130
Serial.println (myRead1);
131
131
132
132
int myValue2 = -366 ;
133
133
myMem.put (10 , myValue2); // (location, data)
134
134
int myRead2;
135
135
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) : " );
137
137
Serial.println (myRead2);
138
138
139
139
if (myMem.getMemorySizeBytes () > 16 )
@@ -142,7 +142,7 @@ void setup()
142
142
myMem.put (20 , myValue3); // (location, data)
143
143
float myRead3;
144
144
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) : " );
146
146
Serial.println (myRead3);
147
147
148
148
String myString = " Hi, I am just a simple test string" ; // 34 characters
You can’t perform that action at this time.
0 commit comments