Files

64 lines
995 B
Markdown
Raw Permalink Normal View History

2019-08-15 19:29:40 +08:00
## EEPROM.begin()
**Syntax:**
2020-11-05 11:39:06 +08:00
`EEPROM.begin(size)`
2019-08-15 19:29:40 +08:00
**Description:**
Load <EEPROM.h> before use
2019-08-15 21:05:40 +08:00
2019-08-15 19:29:40 +08:00
Open EEPROM,Size is the maximum address + 1 of the data bytes to be read and written, ranging from 1 to 4096.
**Function argument**
| Function argument |Type |Description |
| --- | --- | --- |
| size | int | EEPROM size |
## EEPROM.write()
**Syntax:**
2020-11-05 11:39:06 +08:00
`EEPROM.write(addr, data)`
2019-08-15 19:29:40 +08:00
**Description:**
Write data to storage space.
**Function argument**
| Function argument |Type |Description |
| --- | --- | --- |
| addr | int | Address of storage space |
| data | int | Actual Write Data |
## EEPROM.commit()
**Syntax:**
2020-11-05 11:39:06 +08:00
`EEPROM.commit()`
2019-08-15 19:29:40 +08:00
**Description:**
This function needs to be called every time an address is written.
**Function argument**
None
## EEPROM.read()
**Syntax:**
2020-11-05 11:39:06 +08:00
`EEPROM.read(addr)`
2019-08-15 19:29:40 +08:00
**Description:**
Reading data from storage space.
**Function argument**
| Function argument |Type |Description |
| --- | --- | --- |
| addr | int | Address of storage space |