Bodmer / TFT_eFEX

A support library for TFT_eSPI that adds commonly used extra functions
Other
83 stars 27 forks source link

is drawJpgFile available for non-esp32 #1

Closed aliceand closed 5 years ago

aliceand commented 5 years ago

Is void drawJpeg(String filename, int16_t xpos, int16_t ypos, TFT_eSprite *_spr = nullptr) availableon a wemos d1 mini (non-esp32)?

The following code:

TFT_eFEX fex = TFT_eFEX(&tft); fex.drawJpgFile(SPIFFS, "/Baboon.jpg", 0, 0);

is throwing the following error: BDemo:52:7: error: 'class TFT_eFEX' has no member named 'drawJpgFile' fex.drawJpgFile(SPIFFS, "/Baboon.jpg", 0, 0);

Bodmer commented 5 years ago

For historical reasons the function call name is different for the ESP8266 with a file in SPIFFS use:

fex.drawJpeg("/Baboon.jpg", 0, 0);

Bodmer commented 5 years ago

I have added an example for the ESP8266:

https://github.com/Bodmer/TFT_eFEX/tree/master/examples

aliceand commented 5 years ago

Using fex.drawJpeg works well. Thank you!