From f6afb1e4ae8def77b4075b9d09c08eb7899a305c Mon Sep 17 00:00:00 2001 From: andrethomas Date: Sat, 14 Jul 2018 22:04:59 +0200 Subject: [PATCH] Updated Sensor API (markdown) --- Sensor-API.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Sensor-API.md b/Sensor-API.md index 1c0a36ef..3a3aa2c6 100644 --- a/Sensor-API.md +++ b/Sensor-API.md @@ -244,10 +244,11 @@ This functions checks if the I2C address `addr` is in use. ## Useful pre-processor directives -### PSTR("string") +#### PSTR("string") This pre-processor directive saves RAM by storing strings in flash instead of RAM. -const char MyTextStaticVariable[] PROGMEM = "string"; +#### const char MyTextStaticVariable[] PROGMEM = "string"; + This pre-processor directive saves RAM by storing strings in flash instead of RAM. -You may then reference them directly (if the type matches the parameter required) or force it to 4 byte alignment by using the variable as FPSTR(MyTextStaticVariable) +You may then reference them directly (if the type matches the parameter required) or force it to 4 byte alignment by using the variable as `FPSTR(MyTextStaticVariable)`