Write the data from serial port to E2PROM memory.
This command can't be used in commands set
Direct: |
"WREPAL" follow with the L bytes of data |
Arduino: |
void writeE2prom(uint16_t addr, uint16_t length, const uint8_t * pdata) |
C: |
void Digole_writeE2prom(uint16_t addr, uint16_t length, const uint8_t * pdata) |
A, addr
The 2 bytes of start address where the data write to.
L, length
The 2 bytes of data length.
pdata
The pointer to the data that need to be saved
none
Example (Arduino):
uint8_t d[32]={......};
mydisp.writeE2prom(10,32,&d); //write 32 bytes of data to EEPROM start from address 10
uint8_t d[32]={......};
serial.writeString("WREP\x00\x0A\00\x20"); //send write command
for(uint8_t i=0;i<32;i++) //write 32 bytes of data to EEPROM start from address 10 serial.write(d[i]);
Version | Description |
---|---|