diff --git a/Sensor-API.md b/Sensor-API.md index ad6f6037..1c0a36ef 100644 --- a/Sensor-API.md +++ b/Sensor-API.md @@ -245,4 +245,9 @@ This functions checks if the I2C address `addr` is in use. ## Useful pre-processor directives ### PSTR("string") -This pre-processor directive saves RAM by storing strings in flash instead of RAM. \ No newline at end of file +This pre-processor directive saves RAM by storing strings in flash instead of RAM. + +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)