FastLED 3.10.6
Loading...
Searching...
No Matches

◆ loadJpegFromSD()

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

Definition at line 215 of file fs.cpp.hpp.

217 {
218 FileSystem fs;
219 if (!fs.beginSd(cs_pin)) {
220 if (error_message) {
221 *error_message = "Failed to initialize SD card on CS pin ";
222 error_message->append(static_cast<fl::u32>(cs_pin));
223 }
224 return FramePtr();
225 }
226 return fs.loadJpeg(filepath, config, error_message);
227}
bool beginSd(int cs_pin) FL_NO_EXCEPT
FramePtr loadJpeg(const char *path, const JpegConfig &config=JpegConfig(), fl::string *error_message=nullptr)
string & append(const bitset_fixed< N > &bs) FL_NO_EXCEPT
Definition string.h:293

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

+ Here is the call graph for this function: