0

2.2 PiTFT HAT compatible with adafruit_rgb_display?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

2.2 PiTFT HAT compatible with adafruit_rgb_display?

by kmm27 on Sun Apr 11, 2021 1:48 am

Hi,

I have a bit of a dilemma. Some context: I am looking for a screen for my raspi4 capable of simple shape animations (via python) and is at a minimum 2.2" -- no need for a touch screen. I don't want it to be the home screen (takeover HDMI output) or the console, but standalone.

I have a mini PiTFT1.3 (https://www.adafruit.com/product/4484) that works great with the RGB display library (adafruit-circuitpython-rgb-display). But, sadly it's too small. I was hoping that I'd be able to use a similar approach with the 2.2" PiTFT HAT (https://www.adafruit.com/product/2315) but I'm having issues (flipped colors, repeated shapes, lots of weird artifacts).

I noticed there is no specific display object for the ILI9340 (the screen with the HAT), and trying with the nearest neighbor ILI9341 didn't yield much success.

a) Am I trying to make something work that won't based on how the HAT is built? (and it can only use the adafruit-pitft libraries, which are not meant for custom python-driven standalone graphics)

b) Any suggestions on larger screen sizes that can be controlled by the RGB display library?

Many thanks!

kmm27
 
Posts: 5
Joined: Sat Oct 25, 2014 6:12 pm

Re: 2.2 PiTFT HAT compatible with adafruit_rgb_display?

by kmm27 on Sun Apr 11, 2021 2:20 am

[UPDATE -- FIXED]

I managed to find this learn page for an older product: https://learn.adafruit.com/2-2-tft-display/python-usage

I must have messed up the implementation because it turns out that using ili9341 is an updated version works for ili9340 products! More here: https://github.com/adafruit/Adafruit_IL ... /README.md

TL/DR: running the test code from the above learn page with the ili9341 library now works like a charm :)

Leaving this up in case someone finds themselves in a similar boat.

kmm27
 
Posts: 5
Joined: Sat Oct 25, 2014 6:12 pm

Please be positive and constructive with your questions and comments.