I can't get to the bottom of this problem. I have a sketch loaded on an Arduino nano. Connected are two digital temp sensors (DS18B20) and one OLED 128x64 i2C.
When I set in SSD1306.h the value to #define SSD1306_128_32 = I can see 4 lines of text.
( display.setTextSize(1); )
Compiler states : Sketch uses 24156 bytes (78%) of program storage space. Maximum is 30720 bytes.
Global variables use 1649 bytes (80%) of dynamic memory, leaving 399 bytes for local variables. Maximum is 2048 bytes. Low memory available, stability problems may occur.
When I set in SSD1306.h the value to #define SSD1306_128_64, which would give me a the biggest display resolution with a lot of lines possible....
Compiler states : Global variables use 2161 bytes (105%) of dynamic memory, leaving -113 bytes for local variables. Maximum is 2048 bytes.
Not enough memory
So that means the nano is running out of memory because there is no space anymore to run a bigger better display resolution ?