Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodmer authored Apr 14, 2022
1 parent f790c86 commit d0494af
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Extensions/Sprite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d0494af

Please sign in to comment.