LGFX stuff and build size #362
-
How to do not compile all the LGFX stuff (fonts, LCD panels, platforms, touch, SPI etc.) if I need only CVBS and couple fonts? Does it (unused) extras affect build size?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
hello, thanks for your feedback 👍 When You can however reduce the build size by disabling autodetect (e.g don't use |
Beta Was this translation helpful? Give feedback.
hello, thanks for your feedback 👍
When
LGFX_AUTODETECT
is set, the v0/v1 units are compiled in every situation indeed, but they are cached so it only happens once, and only the platform components are attached to your binary.You can however reduce the build size by disabling autodetect (e.g don't use
#define LGFX_AUTODETECT
) and setting up your own configuration (see user_settings example).