Bodmer/TJpg_Decoder

Official RP2040 MBed support?

IAmOrion opened this issue · 4 comments

What's the chances this will eventually be able to support the Official RP2040 MBed boards instead of earlephilhower's ?

My project uses USBHID which earlephilhower does not support (Well, there's the confusing Adafruit TinyUSB I just discovered, but that seems messy), but I also want to use images in .h files using this TJpg_Decoder but apparently it doesn't work with the default RP2040 board selection

I'm buggered no matter what ha!

The library has worked with the Arduino mbed RP2040 package in the past with the exception that LittleFS, DMA and PIO could not be used. Some examples worked fine. I have not checked for compatibility recently since Phil's package works so well. I have only used keyboard USB HID with Phil's package though.

I have updated the library and tested the Flash_Jpg example with TFT_eSPI and the RP2040 Mbed board package 3.4.1. It compiles fine after a few tweaks, see below.

You may also need to comment out lines thus //#include <pgmspace.h> in a sketch because the Mbed package does not seem to provide that header.

I have made another change so User_Config.h does not need to be eddited.

Interesting... did you change anything else? I changed the user_config same as here: 41aaa53

I also edited tjpeg_decoder.h to match here:
83d8643

But I still get an error as FS.h being missing

Edit: I just commented out #define TJPGD_LOAD_FFS as noted in the fix changes and it works now