FastLED 3.9.15
Loading...
Searching...
No Matches

◆ loadJpegFromSD()

FramePtr fl::loadJpegFromSD ( int cs_pin,
const char * filepath,
const JpegConfig & config = JpegConfig(),
fl::string * error_message = nullptr )
inline

Definition at line 108 of file file_system.h.

110 {
111 FileSystem fs;
112 if (!fs.beginSd(cs_pin)) {
113 if (error_message) {
114 *error_message = "Failed to initialize SD card on CS pin ";
115 error_message->append(static_cast<fl::u32>(cs_pin));
116 }
117 return FramePtr();
118 }
119 return fs.loadJpeg(filepath, config, error_message);
120}
bool beginSd(int cs_pin)
FramePtr loadJpeg(const char *path, const JpegConfig &config=JpegConfig(), fl::string *error_message=nullptr)
string & append(const bitset_fixed< N > &bs) FL_NOEXCEPT
Definition string.h:284

References fl::FileSystem::beginSd(), and fl::FileSystem::loadJpeg().

+ Here is the call graph for this function: