Skip to content
New issue

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

Is it possible to add a pushIndexedPixels method? Or is there something like that for me to call? #3555

Open
sevenberyl opened this issue Nov 18, 2024 · 0 comments

Comments

@sevenberyl
Copy link

sevenberyl commented Nov 18, 2024

I TFT_eSPI::p ushPixels extend the following methods to compensate for the missing methods:
void TFT_eSPI::pushIndexedPixels(uint8_t *data, uint16_t *idx, uint32_t len)
{
uint8_t currentIndex;
while (len--)
{
currentIndex = *data;
tft_Write_16(idx[currentIndex]);
data++;
}
}

Can you add a change method so that I don't need to change your code

@sevenberyl sevenberyl changed the title 是否可以添加pushIndexedPixels方法?或者有类似的方法让我调用? Is it possible to add a pushIndexedPixels method? Or is there something like that for me to call? Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant