-
Notifications
You must be signed in to change notification settings - Fork 309
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
Added support for WaveShare-like modules (greentab offsets with blacktab colors-yellowtab?) #168
base: master
Are you sure you want to change the base?
Conversation
Added support for WaveShare-like modules (greentab offsets with blacktab colors)
Added support for WaveShare-like modules (greentab offsets with blacktab colors)
Just a note, the Waveshare module linked in the PR shows wrong colors and has correct offsets with the existing GREENTAB init (the example reccomended one), and correct colors but has wrong offsets in BLACKTAB init. |
Fixed missing code
This should be a cleaner solution to issue #154 as well, than having to manually edit library files. |
Hey, is anyone even checking/reviewing these PRs anymore? |
You solution doesn't work! |
Have you even checked all the changed files in the PR? There are more changed besides the "duplicated initialization". |
Yes, I made changes in the Adafruit_ST7735.cpp and Adafruit_ST7735.h files as you indicated. |
Beats me, I am not the one responsible about merging this. You can just clone my forked repo btw instead of manually changing the files. |
I believe your code is incorrect. By using |
Nope. You need to brush up your C stuff. |
I only own a display that functions the same as the one described by you in the description of this pull request, so I can't test your changes directly. I can however test them indirectly.
|
You still don't get the point of my code. If this answer still does not satisfy you, consider this: the original .h file contains these lines
By your logic, defining any of these "18" variants should also mess the plain initializers. If you actually believe this, you should start wondering what black magic Adafruit does, and the original codes works. |
Please let me clarify. I know that you modified both of the files. I have copied your changes of both of the files into my copy of the library and I have tested your changes on a real Arduino and a real display – the comment above wasn't just a mere theoretical speculation. The displayed image when greentab was used was different from when the original library was used. |
Hi @theloukou. I am reading this thread. Do you think the lib would be compatible with this waveshare display? Thanks. |
Your display uses a completely different driver from this library, so.... No! |
rather than adding a new #define which probably will change and requires maintenance, better to just add a comment to the example letting people know they can use BLACKTAB |
The BLACKTAB define has wrong offsets with this screen, correct ones are GREENTAB ones. Hence why i made a new #define. |
Added simple definition for WaveShare version module. They use GREENTAB offsets, but BLACKTAB colors (someone referred to them as YELLOWTAB?)
Random cheapo modules seem to use this scheme as well.
*Initialize display with INITR_GREENTAB_WS, simple as that