Close

TFT display with ILI9341 issue solved

A project log for DIY programmable (SCPI) bench power supply

Bridging the gap between professional and DIY/hobbyist bench power supply

denisDenis 05/26/2016 at 13:260 Comments

New TFT display with different controller wasn't be a great issue. There is a hack in UTFT library that is described on Arduino forum. One line in UTFT.cpp has to be changed from:

word    dsy[] = {319, 399, 319, 319, 319, 319, 219, 219, 399, 159, 127, 319, 479, 799, 319, 319, 319, 0, 0, 319, 799, 479, 319, 219, 159, 319, 319, 479, 479, 479, 159, 159};
to ...
word   dsy[] = {319, 319, 319, 319, 319, 319, 219, 219, 399, 159, 127, 319, 479, 799, 319, 319, 319, 0, 0, 319, 799, 479, 319, 219, 159, 319, 319, 479, 479, 479, 159, 159};

Now we have to add into firmware selection between SSD1289 and ILI9341 controller. In the meantime you can test sketch that can be found in Files section.

Discussions