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

Enable filesystem support for native builds #536

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions src/lgfx/v1/lgfx_filesystem_support.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ namespace lgfx
using Base::drawPngFile;
using Base::drawQoiFile;
using Base::loadFont;
using Base::load_font_with_path;

#if defined (ARDUINO)

Expand Down Expand Up @@ -262,8 +263,12 @@ namespace lgfx

#endif
#endif
/*
#elif defined (ESP_PLATFORM) || defined(__SAMD51_HARMONY__) || defined(stdin) // ESP-IDF, Harmony, stdio

#elif defined (ESP_PLATFORM) || defined(__SAMD51_HARMONY__)

// esp and samd51 platforms do not have FileWrapper

#elif defined(stdin)

#define LGFX_FUNCTION_GENERATOR(drawImg) \
inline bool drawImg##File(const char *path, int32_t x = 0, int32_t y = 0, int32_t maxWidth = 0, int32_t maxHeight = 0, int32_t offX = 0, int32_t offY = 0, float scale_x = 1.0f, float scale_y = 0.0f, datum_t datum = datum_t::top_left) \
Expand All @@ -290,7 +295,7 @@ namespace lgfx
init_font_file<FileWrapper>();
return load_font_with_path(path);
}
//*/

#endif

#define LGFX_URL_MAXLENGTH 2083
Expand Down