Commit 5ee9f84a authored by deroo's avatar deroo
Browse files

fix more typos in README

parent f961ea43
......@@ -55,12 +55,12 @@ 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( &lt datatype &gt, &lt arrayName &gt, &lt numberOfArrayElements &gt )<br>
NANO33BLE_FLASH( \<datatype\>, \<arrayName\>, \<numberOfArrayElements\> )<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>
&lt datatype &gt &lt arrayName &gt [ &lt numberOfArrayElements &gt ];<br>
\<datatype\> \<arrayName\> [ \<numberOfArrayElements\> ];<br>
int arrayInRAM[200];<br>
to make a same-sized array of ints in RAM.
......@@ -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>
&lt datatype &gt *&lt arrayInFlash &gt = ( &lt datatype &gt *)&lt flashAddress&gt;<br>
\<datatype\> *\<arrayInFlash\> = ( \<datatype\> *)\<flashAddress\>;<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