Commit f961ea43 authored by deroo's avatar deroo
Browse files

fix typos in README

parent ff45243f
......@@ -55,14 +55,14 @@ in "Sketch uses NNNN bytes (X%) of program storage space..."
and divide by 4096, rounding up.
Declare arrays in flash using a macro:<br>
NANO33BLE_FLASH( <datatype>, MarrayName>, <numberOfArrayElements> )<br>
NANO33BLE_FLASH( &lt datatype &gt, &lt arrayName &gt, &lt numberOfArrayElements &gt )<br>
such as
NANO33BLE_FLASH( int, arrayInFlash, 200 )
to create an array named "arrayInFlash" of 200 ints.
The order of the three arguments is meant to match the order of arguments for declaring an array in RAM, which is:<br>
<datatype> <arrayName>[<numberOfArrayElements>];<br>
&lt datatype &gt &lt arrayName &gt [ &lt numberOfArrayElements &gt ];<br>
like<br>
int arrayInRAM[200];
int arrayInRAM[200];<br>
to make a same-sized array of ints in RAM.
The macro sequentially packs the arrays in from the top of the available flash memory, reaching down as far as it needs to go.
......@@ -71,7 +71,7 @@ Thus, if you need to erase all the pages your sketch is using in order to initia
If you want more control over the details of the declarations in flash,
declare arrays in flash using pointers:<br>
<datatype> *<arrayInFlash> = (<datatype> *)<flashAddress>;<br>
&lt datatype &gt *&lt arrayInFlash &gt = ( &lt datatype &gt *)&lt flashAddress&gt;<br>
where the flashAddress is the number of bytes into the flash memory.
For example,<br>
......
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