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

I don't know what is wrong #3

Open
shawnm07 opened this issue Apr 20, 2019 · 2 comments
Open

I don't know what is wrong #3

shawnm07 opened this issue Apr 20, 2019 · 2 comments

Comments

@shawnm07
Copy link

'class Adafruit_ST7735' has no member named 'Color565'

@mrt-prodz
Copy link
Owner

Sorry I just noticed your issue. Someone asked a similar question on the YouTube video of this project, here is the answer I replied :

Not sure exactly why this method is not part of the Adafruit_ST7735 class anymore. The function was simply converting rgb values to a 16bit packed color. You could just add this function to your main ino file and replace all calls to TFT.Color565 to Color565 :

uint16_t Color565(uint8_t r, uint8_t g, uint8_t b) {
    return ((r & 0xF8) << 8) | ((g & 0xFC) << 3) | (b >> 3);
 }

@shawnm07
Copy link
Author

shawnm07 commented May 16, 2019 via email

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

2 participants