Skip to content

Commit c96a93a

Browse files
authored
Merge pull request #360 from Artoria2e5/patch-3
Fix pgmspace.h link for PROGMEM again
2 parents 92f18fa + 2794b97 commit c96a93a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Language/Variables/Utilities/PROGMEM.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Store data in flash (program) memory instead of SRAM. There's a description of t
2121

2222
The `PROGMEM` keyword is a variable modifier, it should be used only with the datatypes defined in pgmspace.h. It tells the compiler "put this information into flash memory", instead of into SRAM, where it would normally go.
2323

24-
PROGMEM is part of the link:http://www.nongnu.org/avr-libc/user-manual/group__avr__pgmspace.html[pgmspace.h] library. It is included automatically in modern versions of the IDE, however if you are using an IDE version below 1.0 (2011), you'll first need to include the library at the top your sketch, like this:
24+
PROGMEM is part of the link:http://www.nongnu.org/avr-libc/user-manual/group\__avr__pgmspace.html[pgmspace.h] library. It is included automatically in modern versions of the IDE, however if you are using an IDE version below 1.0 (2011), you'll first need to include the library at the top your sketch, like this:
2525

2626
`#include <avr/pgmspace.h>`
2727
[%hardbreaks]
@@ -44,7 +44,7 @@ Note that because PROGMEM is a variable modifier, there is no hard and fast rule
4444

4545
While `PROGMEM` could be used on a single variable, it is really only worth the fuss if you have a larger block of data that needs to be stored, which is usually easiest in an array, (or another C data structure beyond our present discussion).
4646

47-
Using `PROGMEM` is also a two-step procedure. After getting the data into Flash memory, it requires special methods (functions), also defined in the link:http://www.nongnu.org/avr-libc/user-manual/group__avr__pgmspace.html[pgmspace.h] library, to read the data from program memory back into SRAM, so we can do something useful with it.
47+
Using `PROGMEM` is also a two-step procedure. After getting the data into Flash memory, it requires special methods (functions), also defined in the link:http://www.nongnu.org/avr-libc/user-manual/group\__avr__pgmspace.html[pgmspace.h] library, to read the data from program memory back into SRAM, so we can do something useful with it.
4848

4949

5050
--

0 commit comments

Comments
 (0)