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.
|
Direct: |
"RDEPAL" |
|
Arduino: |
void readE2prom(uint16_t addr, uint16_t length) |
|
C: |
void Digole_readE2prom(uint16_t addr, uint16_t length) |
A, addr
The 2 bytes of start address where going to read out.
L, length
The 2 bytes length of data
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
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
| Version | Description |
|---|---|