adafruit / Raspberry-Pi-Installer-Scripts

381 stars 160 forks source link

Inverted Color on Braincraft ST7789 #155

Closed remisarrailh closed 3 years ago

remisarrailh commented 3 years ago

Followed BrainCraft Tutorial

Color were inverted.

Fix it by changing these lines and running again sudo python3 adafruit-pitft.py --display=st7789_240x240 --rotation=90 --install-type=fbcp L42 st7789v_ada.c L32 fb_st7789v.c

#define ST77XX_MADCTL_BGR 0x00
#define ST77XX_MADCTL_RGB 0x08
makermelissa commented 3 years ago

Did you use an Adafruit BrainCraft HAT or other hardware?

remisarrailh commented 3 years ago

I used the Adafruit BrainCraft HAT

makermelissa commented 3 years ago

Please try it again. I just finished rewriting the driver and updated the script. If it's still behaving incorrectly, there is supposedly a bgr parameter that I can look into enabling.

makermelissa commented 3 years ago

Closing due to lack of response. We can always re-open. :)