Skip to content

Commit bc0f85e

Browse files
authored
Merge pull request #393 from arduino/karlsoderby/eeprom-update
[MKC-557] Add EEPROM.length() to docs
2 parents 34154f6 + 2b7cf78 commit bc0f85e

File tree

1 file changed

+23
-2
lines changed
  • content/learn/07.built-in-libraries/03.eeprom

1 file changed

+23
-2
lines changed

content/learn/07.built-in-libraries/03.eeprom/eeprom.md

+23-2
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,8 @@ void loop() { /* Empty loop */ }
289289
```
290290

291291
### `EEPROM[]`
292-
Description
292+
293+
#### Description
293294
This operator allows using the identifier `EEPROM` like an array. EEPROM cells can be read and written directly using this method.
294295

295296
#### Syntax
@@ -329,4 +330,24 @@ void setup(){
329330
330331
void loop(){ /* Empty loop */ }
331332
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+

0 commit comments

Comments
 (0)