Closed GoogleCodeExporter closed 9 years ago
You can use the F("string") wrapper macro to store a string in PROGMEM and
print them from there. This is mentioned on the Serial.print() documentation
(http://arduino.cc/en/Serial/Print) but could probably be more prominent. In
any case, we preferred (from an API perspective) that solution to introducing
these new functions.
Original comment by dmel...@gmail.com
on 30 Jul 2012 at 2:24
That is perfectly fine, unfortunately I hadn't noticed it, sorry.
Although this creates an asymmetry with the other functions that use PROGMEM
strings (i.e.: strcpy_P(), strcmp_P()), so maybe in the future these should be
updated to use the F() macro as well.
Anyway thanks, sorry for opening a useless issue.
Original comment by sukkopera
on 31 Jul 2012 at 9:08
Original issue reported on code.google.com by
sukkopera
on 30 Jul 2012 at 8:22