-
Notifications
You must be signed in to change notification settings - Fork 16
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
Comments
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 :
|
where do I put this in the sketch?
…On Wed, May 15, 2019 at 12:03 PM Themistokle Benetatos < ***@***.***> wrote:
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);
}
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3?email_source=notifications&email_token=ALXZMTB2WWUBZXEHYU5QC4DPVRNBXA5CNFSM4HHI4JV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVPUNRI#issuecomment-492783301>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ALXZMTETHEPTPVW45MBEXN3PVRNBXANCNFSM4HHI4JVQ>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
'class Adafruit_ST7735' has no member named 'Color565'
The text was updated successfully, but these errors were encountered: