IPS 3.2" display

All that relates to the H/W
Post Reply
bugs
Posts: 195
Joined: Mon Feb 08, 2021 10:10 pm
Location: Scotland
Has thanked: 92 times
Been thanked: 77 times

IPS 3.2" display

Post by bugs »

My 3.2" TFT died - probably from static during the hot dry spell recently.
I needed a quick replacement from Aliexpress and picked this one:-
3.2 Inch IPS Red Module ESP32 HD Display TFT LCD ILI9341
3.2IPS2.jpg
When it arrived it had this label attached
IPSmsg2.jpg
Sure enough the colours were wrong. In fact they were inverted so black instead of white etc.
The "software" emailed later was little use as Arduino and Python orientated.

The ILI9341 has an invert bit which can be accessed directly and luckily cicciocb had already provided a patch for a similar problem 5 years ago!

In case anyone else buys this sort of TFT the patch is repeated here:-

Code: [Local Link Removed for Guests]

'reverse TFT colors
CS = 14
DC = 27
pin(DC) = 0
SPI.CSPIN CS
wlog spi.byte(&h21)
wlog spi.byte(&h21)
pin(DC) = 1
Note that the initial (boot) screen will still be a nasty brown colour...

Anyway hope this is helpful and thanks, as always ,to cicciocb.
You do not have the required permissions to view the files attached to this post.
Post Reply