what does the F() function in the source do?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
tooblippe
New user
Posts: 8
Joined: 12 Sep 2016, 15:44

what does the F() function in the source do?

#1 Post by tooblippe » 14 Sep 2016, 20:21

what does the F() function in the source do?

i cant seem to find the declaration

thank you


User avatar
costo
Normal user
Posts: 500
Joined: 21 Nov 2015, 15:03
Location: NL, zw-NB

Re: what does the F() function in the source do?

#3 Post by costo » 14 Sep 2016, 21:47

Look in this link at the bottom of the page

http://playground.arduino.cc/Learning/Memory

tooblippe
New user
Posts: 8
Joined: 12 Sep 2016, 15:44

Re: what does the F() function in the source do?

#4 Post by tooblippe » 14 Sep 2016, 21:54

Thank you for the responses. Learning somethign new every day.

Drum
Normal user
Posts: 300
Joined: 07 Feb 2016, 11:56

Re: what does the F() function in the source do?

#5 Post by Drum » 15 Sep 2016, 12:01

Is this something to be concerned about with respect to http://www.esp8266.nu/forum/viewtopic.php?f=2&t=1988 ?

User avatar
costo
Normal user
Posts: 500
Joined: 21 Nov 2015, 15:03
Location: NL, zw-NB

Re: what does the F() function in the source do?

#6 Post by costo » 15 Sep 2016, 13:33

Drum wrote:Is this something to be concerned about with respect to http://www.esp8266.nu/forum/viewtopic.php?f=2&t=1988 ?
I think it is not , because the F() function is used only during compilation, strings are written in Flash/(program storage space) once and stay there unchanged until next compilation/flash. Without the F() function strings are used as global variables and written in flash but also copies are stored in the ram/(dynamic memory) which is more scarcely than flash memory in the ESP8266 as well as in the AVR chips of Arduino boards.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 28 guests