Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use drawPngFile without FS #43

Open
marten-lucas opened this issue Feb 6, 2023 · 1 comment
Open

Cannot use drawPngFile without FS #43

marten-lucas opened this issue Feb 6, 2023 · 1 comment

Comments

@marten-lucas
Copy link

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
Copy link
Collaborator

lovyan03 commented Feb 6, 2023

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants