Your library worked "out of the box"
I have however, been having some problems with the bitmap drawing example.
The program suggested for converting bitmaps to c code produces less than height*width number of elements in the array.
I may be doing something wrong however.
I wrote my own program in processing to do the conversion, and that worked. The only problem is that if i try to draw the bitmap at any other location on the screen other than x=0,y=0 the bitmap turns to partial garbage, or is not drawn at all, depending on the position.
I suspect that the error is in the constraint window method setAddrWindow_cont(x,y,w,h);
I used the drawPixel method as a workaround for now. It works fine and it is still pretty fast, but it is probably a slower way to draw the bitmap than the "correct" way.
Here is the workaround if anyone wants it:
void drawcbmp(int16_t x, int16_t y, int16_t w, int16_t h, const uint32_t *bitmap,bool true24)
{
int16_t px;
uint16_t color;
int16_t cx = 0;
int16_t cy = 0;
for (px = 0;px < w*h; px++){//loop trough pixels
if (true24){
color = tft.Color24To565(pgm_read_dword(bitmap + px));//bitmap[px]);//24 bit
} else {
color = pgm_read_word(bitmap + px);//bitmap[px];//18 bit
}
tft.drawPixel(x+cx,y+cy,color);
cx++;
if(cx>=w)
{
cx = 0;
cy++;
}
yield();
}
}
Here is what I'm using it for: