Skip to content

Commit

Permalink
Enable stdio filesystem support
Browse files Browse the repository at this point in the history
It was commented out.  Uncommenting it and adding a namespace
qualifier to load_font_with_path made it work great.  Tested
with platformio native builds on Windows/Mingw32
  • Loading branch information
MitchBradley committed Mar 1, 2024
1 parent d0beeee commit e8dac09
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 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,7 +263,7 @@ namespace lgfx

#endif
#endif
/*

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

#define LGFX_FUNCTION_GENERATOR(drawImg) \
Expand Down Expand Up @@ -290,7 +291,7 @@ namespace lgfx
init_font_file<FileWrapper>();
return load_font_with_path(path);
}
//*/

#endif

#define LGFX_URL_MAXLENGTH 2083
Expand Down

0 comments on commit e8dac09

Please sign in to comment.