diff --git a/content/learn/07.built-in-libraries/03.eeprom/eeprom.md b/content/learn/07.built-in-libraries/03.eeprom/eeprom.md index 3464cb13d1..e6e98908c6 100644 --- a/content/learn/07.built-in-libraries/03.eeprom/eeprom.md +++ b/content/learn/07.built-in-libraries/03.eeprom/eeprom.md @@ -289,7 +289,8 @@ void loop() { /* Empty loop */ } ``` ### `EEPROM[]` -Description + +#### Description This operator allows using the identifier `EEPROM` like an array. EEPROM cells can be read and written directly using this method. #### Syntax @@ -329,4 +330,24 @@ void setup(){ void loop(){ /* Empty loop */ } -``` \ No newline at end of file +``` + +### `length()` + +This function returns an unsigned int containing the number of cells in the EEPROM. + +#### Description + +This function returns an `unsigned int` containing the number of cells in the EEPROM. + +#### Syntax + +``` +EEPROM.length() +``` + +#### Returns + +Number of cells in the EEPROM as an `unsigned int`. + +