From 2b7cf78a92bea7bc71c3190d21a89403d36e5c43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20S=C3=B6derby?= <35461661+karlsoderby@users.noreply.github.com> Date: Tue, 19 Jul 2022 10:01:37 +0200 Subject: [PATCH] [MKC-557] Add EEPROM.length() to docs --- .../07.built-in-libraries/03.eeprom/eeprom.md | 25 +++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) 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`. + +