Hello all
I am programming a Pro mini. Has an Oled screen on I2C.
As usual, I have been sending the text to the screen using the ‘F’ method:
display.println(F(“This is some text”));
I was under the thought that this saved Dynamic memory by robbing Program memory.
But, I have run out of memory at 92% Program storage and 37% Dynamic memory (program doing odd things if I add more code).
So, I took out all the ‘F’ commands and it didn’t decrease the Program memory, just increased the Dynamic memory (and still didn’t run).
How can I overcome this? I have trimmed the code down to the best of my ability (no repeats, variables set to their correct types etc).
It is the text that is killing it, but it is a text heavy routine.
Has to be a Pro mini due to space restrictions. Is there any other small form factor Arduino with more memory? Don’t think there is (maybe a Teensy?)
Is there a better way to say:
** display.setTextSize(2);**
** display.setCursor(23,5);**
** display.print(F(“Some text”));**
** display.display();**
I tried using a single Char print routine and variables for the position, then sending the text to the print routine as required. It actually increased the memory usage.
Could I store the text in an external eeprom?
Any suggestions would be great. Thank you