This commit is contained in:
Bodmer
2022-04-14 15:14:45 +01:00
committed by GitHub
parent f790c86818
commit d0494af057

View File

@ -335,6 +335,18 @@ int8_t TFT_eSprite::getColorDepth(void)
}
/***************************************************************************************
** Function name: setBitmapColor
** Description: Set the 1bpp foreground foreground and background colour
***************************************************************************************/
void TFT_eSprite::setBitmapColor(uint16_t c, uint16_t b)
{
if (c == b) b = ~c;
_tft->bitmap_fg = c;
_tft->bitmap_bg = b;
}
/***************************************************************************************
** Function name: setPaletteColor
** Description: Set the 4bpp palette color at the given index