call of overloaded ______ is ambigous

Hello everybody.

Could someone tell me where this code go wrong? 'Attached file.

“call of overloaded ‘drawRGBBitmap(int, int, const short unsigned int&, int, int)’ is ambiguous”

t030rs_BMP.zip (4.6 KB)

shoud the call be (remove the [1665])

    tft.drawRGBBitmap(10, 10, t030rs, 45, 37);

No that's exactly the same.

Thanks for help me.

If you post the code that’s not in a ZIP file then more people are going to look at it. Often we’re just browsing on a phone or tablet and can’t open the file at all.

If the code is long then perhaps you could also help out by giving the full error message which says what line the problem is on.

It seems to be having trouble with the 'short' keyword and the array index.

Change:
extern const unsigned short PROGMEM t030rs[1665];
to
extern const unsigned PROGMEM t030rs[1665];

Change:
tft.drawRGBBitmap(10, 10, t030rs[1665], 45, 37);
to
tft.drawRGBBitmap(10, 10, t030rs, 45, 37);

I found the answer!!

I changed:
extern const unsigned short PROGMEM t030rs[1665];
to
extern const uint16_t PROGMEM t030rs[1665];

Then changed:
tft.drawRGBBitmap(10, 10, t030rs[1665], 45, 37);
to
tft.drawRGBBitmap(10, 10, t030rs, 45, 37);

And it works.

Thank you everydoby.