Reserve a continuously flash memory space for Direct access. If already reserved a space before, then it will erase all contents in the last space and reallocate a new continuously space.
Use this function will make the Direct access and File operation parellel, and avoid conflict operation in the flash memory.
Warning: The default setting of display is without reserved space, means can access whole space in flash with Direct access commands.
Note: This function can't run in commands set.
|
Direct: |
"FLMRS", follow with hex number: 0x55, 0xAA, then 3 bytes of length, MSB first |
|
Arduino: |
void reserveFlash(uint32_t length) |
|
C: |
void Digole_reserveFlash(uint24_t length) |
length
3 bytes value to specify the total bytes want to be reserved for direct access, MSB first.
mydisp.reserveFlash(1000000L); //reserve 1MB for direct access, it actually reserve 1003520 bytes
Serial.writeString("FLMRS");
Serial.write(0x55);
Serial.write(0xAa);
Serial.write(1000000L>>16);
Serial.write(1000000L>>8);
Serial.write(1000000L);
| Version | Description |
|---|---|
| V7 | function was added. |
"FLMER"----Direct erase flash memory
"FLMRD"----Direct read flash memory
"FLMWR"----Direct write flash memory
"FLMCS"----Direct run commands code in flash memory