Commit 665fba58 authored by deroo's avatar deroo
Browse files

Update README.md

parent 8fa6a36c
......@@ -27,16 +27,16 @@ particularly when the datatype is of the size of a flash word or larger
Arrays of datatypes smaller than a flash word (eg. char, byte, short)
are awkward to implement, but doable.
Write data to a flash array with this motif:<br>
flashMode(FLASH_WRITE);<br>
arrayInFlash[index]=value;<br>
flashMode(FLASH_READONLY);<br>
and erase a page in flash with this motif:<br>
flashMode(FLASH_ERASE);<br>
flashErasePage(pageNumber);<br>
Write data to a flash array with this motif:
flashMode(FLASH_WRITE);
arrayInFlash[index]=value;
flashMode(FLASH_READONLY);
and erase a page in flash with this motif:
flashMode(FLASH_ERASE);
flashErasePage(pageNumber);
flashMode(FLASH_READONLY);
Read the array just as you would any other array:
Read the array just as you would any other array. For example:
value = arrayInFlash[index];
or
Serial.print(arrayInFlash[index]);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment