Closed Andon-A closed 6 years ago
hiya which adafruit display are you using?
100% honesty: It's not an Adafruit display, it's a minimalist knockoff one I've had lying around for ages. It's the ST7735R display just like the breakout or the bare screen.
This specific screen works 100% perfectly with the Arduino Library but when loading the CircuitPython library red and blue are swapped. I've worked with these screens extensively in the past so they should be identical in function to the Adafruit versions.
Attempting to use the ST7735 non-R CircuitPython initializer results in nothing being displayed on the screen at all.
sounds like they have different color order, you'll have to mod the library to support it!
With my work using these screens previously, I'm inclined to disagree. As mentioned, they work perfectly with the Arduino libraries.
That said, I'll have an actual, proper Adafruit screen in my hands tomorrow to be 100% certain. And swapping colors in color565() is super easy if it does turn out to be the case. It's also worth noting that I don't expect you to worry at all about non-Adafruit things. You've got enough Adafruit products to deal with as it is.
awesome, let us know!
Breakout board arrived earlier today, and I just got home, soldered the header on, and can confirm that the blue and red are swapped.
huh! ok we'll take a look - @tdicola good one for you to check out!
Has this been fixed?
Last I heard, @kattni had verified it when going through doing her testing, but it has't been fixed yet to my knowledge.
I was able to replicate this when testing the linting PR. To my knowledge, it has not been fixed.
This is simply a wrong RGB mode in the initialization, in the MADCTL register — it needs to be 0x00
for RGB color. By the way, we could have a parameter for that register to set the orientation, for example 0xc0
rotates by 90°.
Issue is no longer present. We're unsure how we reproduced the bug in the first place. Whatever it is, it's fixed for now.
Running a ST7735R on a Feather M0 Basic, and when it should display red - IE, color565(255,0,0) - it displays blue instead, and the reverse is also true.
The super simple code I am using:
for completeness sake, I've removed the other driver files (hx8353, ili9341, etc) from the folder to save on space, as the M0 basic has almost none.