m5stack / M5GFX

Graphics library for M5Stack series
MIT License
155 stars 47 forks source link

Cannot use drawPngFile without FS #43

Open marten-lucas opened 1 year ago

marten-lucas commented 1 year ago

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.

lovyan03 commented 1 year ago

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>