Could someone give me a hint regarding what would be the best practice to save memory: should I #define strings or use local static const char arrays?
Code example, option #1:
#define LCD_LIMIT "Number of hours"
...
setup(){
DisplayData(LCD_LIMIT, actual_Data);
}
...
void DisplayData(const char *theme, String data){
}
Code example, option #2:
setup(){
DisplayData(actual_Data);
}
...
void DisplayData(String data){
static const char theme[] = "Number of hours";
}
Cheers