Read the data in flash memory and send to serial port.
This command can't be used in commands set
Note: V7 firmware----the address will be remapped into the reserved memory space that reserved by command Reserve flash.
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 rest of data.
|
Direct: |
"FLMRDAL" |
|
Arduino: |
void flashReadStart(uint32_t addr, uint32_t length) |
|
C: |
void Digole_flashReadStart(uint24_t addr, uint24_t length) |
A, addr
The 3 bytes of start address where the memory going to be erased.
L, length
The 3 bytes length of the memory going to be erased
none
Example (Arduino):
uint8_t d[4096];
mydisp.flashReadStart(65536L,4096); //send read command to the flash memory, from address 65536 to 69631
for(uint16_t i=0;i<4000;i++) //read out 4000 bytes from flash
d[i]=mydisp.read1();
mydisp.write(0); //any new writing to serial port cancel the rest of 96 bytes pending read out
uint8_t d[4096];
serial.writeString("FLMRD\x01\x00\00\x00\x10\x00"); //send read command to the flash memory, from address 65536 to 69631
for(uint16_t i=0;i<4096;i++) //read out 4096 bytes from flash
d[i]=serial.read();
| Version | Description |
|---|---|