From bd90281e17e4fb6fc4d2c43d287424a36f21c4f9 Mon Sep 17 00:00:00 2001 From: Makuna Date: Tue, 19 May 2015 15:24:28 -0700 Subject: [PATCH] Progmem updates --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index b24b2a5c6..0ae241a91 100644 --- a/README.md +++ b/README.md @@ -82,6 +82,11 @@ By default the diagnostic output from WiFi libraries is disabled when you call ` Both ```Serial``` and ```Serial1``` objects support 5, 6, 7, 8 data bits, odd (O), even (E), and no (N) parity, and 1 or 2 stop bits. To set the desired mode, call ```Serial.begin(baudrate, SERIAL_8N1);```, ```Serial.begin(baudrate, SERIAL_6E2);```, etc. +#### Progmem #### + +The Program memory features work much the same way as on a regular Arduino; placing read only data and strings in read only memory and freeing heap for your application. +The important difference is that on the esp8266 the literal strings are not pooled. This means that the same literal string defined inside a ```F("")``` and/or ```PSTR("")``` will take up space for each instance in the code. So you will need to manage the duplicate strings yourself. + #### WiFi(ESP8266WiFi library) #### This is mostly similar to WiFi shield library. Differences include: