From b24aff92e4d27226cb88fddc98f3cc094b2122cc Mon Sep 17 00:00:00 2001 From: Kyle Lobo Date: Mon, 1 Jul 2019 22:28:35 +0530 Subject: [PATCH] Fix grammatical errors 1. at the top _of_ your sketch 2. such as a project with an LCD ~display~ 3. this is ~in~ actually an example --- Language/Variables/Utilities/PROGMEM.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Language/Variables/Utilities/PROGMEM.adoc b/Language/Variables/Utilities/PROGMEM.adoc index c27e27ed7..b483ad5fe 100644 --- a/Language/Variables/Utilities/PROGMEM.adoc +++ b/Language/Variables/Utilities/PROGMEM.adoc @@ -21,7 +21,7 @@ Store data in flash (program) memory instead of SRAM. There's a description of t 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. -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: +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 of your sketch, like this: `#include ` 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). @@ -101,7 +101,7 @@ void loop() { ---- *Arrays of strings* -It is often convenient when working with large amounts of text, such as a project with an LCD display, to setup an array of strings. Because strings themselves are arrays, this is in actually an example of a two-dimensional array. +It is often convenient when working with large amounts of text, such as a project with an LCD, to setup an array of strings. Because strings themselves are arrays, this is actually an example of a two-dimensional array. These tend to be large structures so putting them into program memory is often desirable. The code below illustrates the idea. @@ -146,7 +146,7 @@ void setup() { void loop() { /* Using the string table in program memory requires the use of special functions to retrieve the data. The strcpy_P function copies a string from program space to a string in RAM ("buffer"). - Make sure your receiving string in RAM is large enough to hold whatever + Make sure your receiving string in RAM is large enough to hold whatever you are retrieving from program space. */