Read the data from E2PROM

Description

  Read the data in E2PROM memory and send to serial port.

This command can't be used in commands set

All version of firmare: if want to cancel the rest of data that pending read out, just need send new byte to serial port, the display will terminate the sending of date left.

Usage:

Direct:

"RDEPAL"

Arduino:

void readE2prom(uint16_t addr, uint16_t length)

C:

void Digole_readE2prom(uint16_t addr, uint16_t length)

Parameters:

A, addr

The 2 bytes of start address where going to read out.

L, length

The 2 bytes length of data

Return:

none

Example (Arduino):

uint8_t d[32];

mydisp.readE2prom(10,32); //send read command
for(uint8_t i=0;i<30;i++) //read out 30 bytes from E2prom
d[i]=mydisp.read1();

mydisp.write(0); //any new writing to serial port cancel the rest of 2 bytes pending read out

Example(direct)

 

uint8_t d[32];

serial.writeString("RDEP\x00\x0A\00\x20"); //send read command

for(uint8_t i=0;i<30;i++) //read out 30 bytes from E2prom
d[i]=serial.read();

serial.write(0); //any new writing to serial port cancel the rest of 2 bytes pending read out

 

Changelog

Version Description
   

See Also

Write data to E2prom

Mini file

Read data from flash memory