File tree 1 file changed +23
-2
lines changed
content/learn/07.built-in-libraries/03.eeprom
1 file changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -289,7 +289,8 @@ void loop() { /* Empty loop */ }
289
289
```
290
290
291
291
### ` EEPROM[] `
292
- Description
292
+
293
+ #### Description
293
294
This operator allows using the identifier ` EEPROM ` like an array. EEPROM cells can be read and written directly using this method.
294
295
295
296
#### Syntax
@@ -329,4 +330,24 @@ void setup(){
329
330
330
331
void loop(){ /* Empty loop */ }
331
332
332
- ```
333
+ ```
334
+
335
+ ### ` length() `
336
+
337
+ This function returns an unsigned int containing the number of cells in the EEPROM.
338
+
339
+ #### Description
340
+
341
+ This function returns an ` unsigned int ` containing the number of cells in the EEPROM.
342
+
343
+ #### Syntax
344
+
345
+ ```
346
+ EEPROM.length()
347
+ ```
348
+
349
+ #### Returns
350
+
351
+ Number of cells in the EEPROM as an ` unsigned int ` .
352
+
353
+
You can’t perform that action at this time.
0 commit comments