Libraries #include // //Constants #define EEPROM_SIZE 12 void setup ( ) Result Other functions of the library can be used depending on the use you have of the EEPROM. Before using the function, we have to initialize the size of the memory with begin() and the update function does not exist but the write function does something similar. To interface with the EEPROM of the ESP8266, we can use the EEPROM.h library, very similar to the one for Arduino with some differences. If you want to record real-time data from a fleet of sensors to plot curves, it is best to go for an SD card module to store the data. The EEPROM of the ESP8266 has a size of 4kB. The overall flash memory size is usually 4MB. It is advisable to pay close attention to the size of the stored data and how often you want to update it. The memory cells can be read as many times as necessary but the number of write cycles is limited to 100,000. One important thing to note is that the EEPROM has a limited size and life span. This is a special memory location in the microcontroller where data remains in memory even after the board is turned off. The ESP8266 microcontroller has a Flash memory area to simulate the EEPROM of the Arduino. When working with microcontrollers, it is interesting to keep in memory data such as the identifier and the password of the Wifi. The EEPROM is an internal memory of the ESP8266 microcontroller which allows to keep in memory data after restarting the card.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |