bitbank2 / JPEGDEC

An optimized JPEG decoder for Arduino
Apache License 2.0
366 stars 47 forks source link

Add open using File, on systems with FS.h #10

Closed PaulStoffregen closed 3 years ago

PaulStoffregen commented 3 years ago

This adds a 3rd open function which can take a File object.

It only works on systems which provide the FS.h filesystem abstraction. Currently ESP8266 and ESP32 have this, and I'm adding it for Teensy. Preprocessor checking is done to not compile any of this stuff when the FS.h header doesn't exist.