M5GFX icon indicating copy to clipboard operation
M5GFX copied to clipboard

Cannot use drawPngFile without FS

Open marten-lucas opened this issue 2 years ago • 1 comments

The examples do not match the latest version. Our firmware uses drawPngFile to show images from LittleFS. It was removed in this release. Please give a new example how to use it now.

thx.

marten-lucas avatar Feb 06 '23 16:02 marten-lucas

Hello, @marten-lucas .

If you want to handle the file system, please write the file system include before the M5GFX.h include.

// This order would work.
#include <FS.h>
#include <M5GFX.h>
// This order does not work.
#include <M5GFX.h>
#include <FS.h>

lovyan03 avatar Feb 06 '23 23:02 lovyan03