You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with compile errors because the following virtual functions are pure within 'lgfx::v1::DataWrapperT<fs::LittleFSFS>'
As far as I can tell
lcd.setFileStorage(LittleFS);
correctly initializes the _data_wrapper_factory within LGFXBase.hpp
but the _data_wrapper_factory is null within an LGFX_Sprite instance and attempting to initialize it fails:
localSprite->setFileStorage(LittleFS);
with the same pure virtual issues shown above when trying to call drawPngFile and passing LittleFS as the first parameter.
If I call:
localSprite->drawPngFile( "/Sword.png", 150,150);
then it compiles OK, but because _data_wrapper_factory is null nothing gets drawn.
I'm pretty sure I am doing something wrong at a high level, but am currently a bit lost.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Drawing a PNG is very simple writing directly to the LCD:
It works simply and easily. Marvelous.
OTOH, attempting to draw into an LGFX_Sprite fails quite badly:
with compile errors because the
following virtual functions are pure within 'lgfx::v1::DataWrapperT<fs::LittleFSFS>'As far as I can tell
correctly initializes the _data_wrapper_factory within LGFXBase.hpp
but the _data_wrapper_factory is null within an LGFX_Sprite instance and attempting to initialize it fails:
with the same pure virtual issues shown above when trying to call
drawPngFileand passingLittleFSas the first parameter.If I call:
then it compiles OK, but because _data_wrapper_factory is null nothing gets drawn.
I'm pretty sure I am doing something wrong at a high level, but am currently a bit lost.
Any pointers greatly appreciated.
Cheers - Steve
Beta Was this translation helpful? Give feedback.
All reactions