We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following code always display sprite in black and white with the latest version of the library.
TFT_eSprite sprite = TFT_eSprite(&display); sprite.setColorDepth(1); sprite.createSprite(display.width(), display.height() - 30); sprite.setFreeFont(&DSEG14_Classic_Bold_100); switch (currentProfile) { case 0: p = "A." + ((currentBank > 9 ? "" : "0") + String(currentBank)); sprite.setBitmapColor(TFT_RED, TFT_BLACK); break; case 1: p = "B." + ((currentBank > 9 ? "" : "0") + String(currentBank)); sprite.setBitmapColor(TFT_GREEN, TFT_BLACK); break; case 2: p = "C." + ((currentBank > 9 ? "" : "0") + String(currentBank)); sprite.setBitmapColor(TFT_BLUE, TFT_BLACK); break; } sprite.setTextDatum(MC_DATUM); sprite.drawString(p, sprite.width() / 2, sprite.height() / 2); sprite.pushSprite(0, 30); sprite.deleteSprite();
The text was updated successfully, but these errors were encountered:
Can you try the "Sprite_scroll_1bit" example an tell me if it is in just black and white. Thanks.
Sorry, something went wrong.
Just tested the above exmaple and it plots the 1 bit sprite in different colours.
However the "One_bit_Sprite_Demo" does only plot back and white.
I will investigate.
I will fix this. In the meantime the work-around is to always use the tft instance, e.g. tft.setBitmapColor(TFT_GREEN, TFT_BLACK);
f790c86
Fix #1776
d0494af
Fixed in Github master.
No branches or pull requests
The following code always display sprite in black and white with the latest version of the library.
The text was updated successfully, but these errors were encountered: