Memory usage when importing the library #216
Replies: 1 comment 1 reply
-
You can test empty those array to check memory usage, I expect no memory change if you are not using those class. ESP32 current version seems not allow allocate this big size of memory if no PSRAM exists. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have a question regarding memory usage when including Arduino_GFX_Library.h
I see many displays are using arrays with a list of commands. These are defined as
static const uint8_t .....[] = { ...... }
Are these arrays contributing to the RAM usage, or if the display is not used the array is not allocated?
Ask these because I see more RAM usage than what I expected. On an ESP32-S2 I'm not able to use the Canvas (240x240 display) and the board is not able to allocate 115kbytes for the canvas.
Is there a way to only include the required files: GFX, bus, display (st7789) and the canvas? Thank you
Beta Was this translation helpful? Give feedback.
All reactions