-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Document F() macro for placing constant strings in program (flash) memory. #2579
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The use of the __FlashStringHelper* type for storing such constants should probably also be documented. On a related note, the http://arduino.cc/en/Reference/PROGMEM should also be updated. Since the gcc and libc upgrade in 1.5.7 (IIRC), there is no need to use the prog_* types anymore. |
It is documented in http://playground.arduino.cc/Learning/Memory... but it's not an official documentation, I infer. This fact is very inconsistent because while in http://arduino.cc/en/Reference/PROGMEM (official resource) the issue with new PROGMEM way of doing things is updated (see #2647), in http://playground.arduino.cc/Main/PROGMEM is not...so...mmm... See also #2122 |
@q2dg @damellis documentation added for Serial.print(F()) added https://www.arduino.cc/en/Reference/PROGMEM @matthijskooijman how do you suggest to modify the current documentation? |
|
@q2dg modified in the way you suggested |
Ok, thanks. For me it's already right |
ok, @matthijskooijman can this be closed? |
I'm closing this, reopen it if necessary |
You can use the F() macro to place constants in flash memory, not RAM, e.g. Serial.println(F("foo")) but I didn't find this documented anywhere in the Arduino reference.
The text was updated successfully, but these errors were encountered: