Skip to content

Commit f0ec61b

Browse files
committed
Minor Content Struct Update: Based on Comments
1 parent 40fab3d commit f0ec61b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/learn/03.programming/06.memory-guide/memory-guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,8 @@ const PROGMEM uint16_t NumSet[] = {0, 1, 1, 2, 3, 5, 8 ...};
332332
const char greetMessage[] PROGMEM = {"Something"};
333333
```
334334

335+
***You can read more about PROGMEM in the [Arduino Language Reference](https://www.arduino.cc/reference/en/language/variables/utilities/progmem/).***
336+
335337
For **ARM-based Arduino® board**, to implement similar solution, we will need to use `static const` over the variables.
336338

337339
```arduino
@@ -348,8 +350,6 @@ The usage differs in different levels summarized as following:
348350
- *Class Level*
349351
- On a Class level, `static` declaration will mean any type of applicable data that is handled will be shared in between the instances.
350352

351-
***You can read more about PROGMEM in the [Arduino Language Reference](https://www.arduino.cc/reference/en/language/variables/utilities/progmem/).***
352-
353353
#### Non-Dynamic Memory Allocation
354354

355355
Dynamic memory allocation is usually a suitable method if the RAM size of the system is big enough to get around with; however, for microcontroller-based systems, such as embedded systems, counting every Byte of RAM is not recommended.

0 commit comments

Comments
 (0)