question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ST7735 inverted colors

See original GitHub issue

I’m following on from issue #79 which has now been merged.

I bought a similar LCD display from pimoroni Works great, however, if I run python3 examples/colors.py -f conf/st7735.conf the colours are inverted. For ‘red’ I get yellow, ‘green’ turns magenta, etc. Same goes for any example, not just color.py.

And I have no idea what the --bgr flag does but it didn’t make a difference for me.

For this display I changed the conf file to

--display=st7735
--interface=spi
--spi-bus-speed=16000000
--gpio-data-command=9
--gpio-backlight=19
--width=160
--height=80
--backlight-active=high
--spi-cs-high=true
--spi-device=1
--v-offset=26
--h-offset=1

Does anybody have a suggestion? Thanks

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:18 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jackjameshowardcommented, Sep 21, 2020

@jackjameshoward try sudo -H pip3 install -U Pillow

Yes, updating Pillow worked. And the --inverse flag works now too.

0reactions
rm-hullcommented, Sep 25, 2020

I could also revise luma.core.bitmap_font to support versions using the older code.

What do you say @rm-hull?

sorry for non-reply, … i get so many notifications from github that they often get classified as spam and end up in the junk folder.

@jackjameshoward I’ll add your conf file to the examples repo

Read more comments on GitHub >

github_iconTop Results From Across the Web

ST7735R Inverted Colors - LoBo
Here's a pic of 3 rectangles in red, green and blue. They show up as cyan, magenta and yellow. Looks like the hex...
Read more >
St7735 0.96" 160x80 shows wrong colors - Arduino Forum
The order should be White-Blue-Red-Yellow-Green but the actual results were different. It was White-Red-Blue-Cyan-Green.
Read more >
Problem about color in ST7735 · Issue #86 - GitHub
Arduino board: ESP32. Arduino IDE version: 1.8.9. I can use the ST7735 screen on ESP32 ,but only one problem is about the color....
Read more >
tft.setTextColor(ST7735_BLUE); but TFT shows text color Red
This leads me to believe that the bit order of the colors is also reversed. Follow @ScruffR's advice to change the byte and...
Read more >
Using the ST7735 1.8" Color TFT Display with Arduino
The ST7735 TFT display is a 1.8″ display with a resolution of 128×160 pixels and can display a wide range of colors (...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found