Currently overflowing the SRAM buffer on an Arduino nano (distortion in bottom right screen). This generates an annoying artifact on the bottom right of the screen.
Cause:
Adafruit_SSD1306 library allocates 1024byte in SRAM during runtime.
Current code (as of 1.1.0 & 1.2.0) uses:
---- 825bytes @ compile SRAM (40%)
---- 23636bytes @ compile RAM (73%)
This leaves 1223bytes in SRAM available at runtime, of which 1024 is allocated for the SSD1306 lib.
Considerations:
Refactor the code's variables to be smaller.
Swap to U8G2 library, or another small-buffer library
Sidestep issue and propose upgrade to a different board (Pico / ESP32?)
Currently overflowing the SRAM buffer on an Arduino nano (distortion in bottom right screen). This generates an annoying artifact on the bottom right of the screen.
Cause:
Considerations: