ILI9341 SPI It's not working

Moderator: Benj

User avatar
Osta
Posts: 146
Joined: Tue Jul 05, 2016 9:42 am
Been thanked: 13 times
Contact:

ILI9341 SPI It's not working

Postby Osta » Thu Apr 25, 2019 12:02 pm

Sorry!!!
Made a mistake with the settings !
It's working!!!!
Attachments
ILI9341ISP.jpg
JPG
ILI9341ISP.jpg (123.48 KiB) Viewed 343 times
ILI9341_SPI.fcfx
Proj
(9.23 KiB) Downloaded 19 times

User avatar
Osta
Posts: 146
Joined: Tue Jul 05, 2016 9:42 am
Been thanked: 13 times
Contact:

Re: ILI9341 SPI It's not working

Postby Osta » Thu Apr 25, 2019 12:20 pm

By default, the display clears to 320x240.
A default graphics 240x320.
It's confusing.
Attachments
SET.jpg
SET.jpg (79.04 KiB) Viewed 338 times

User avatar
Benj
Matrix Staff
Posts: 14216
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4355 times
Been thanked: 4095 times
Contact:

Re: ILI9341 SPI It's not working

Postby Benj » Thu Apr 25, 2019 1:13 pm

Hi Osta,

Glad it's working now :D

Change the screen dimension properties so that the entire display is cleared correctly on initialise, the width and height might need to be swapped. Then use the SetOrientation component macro to rotate the display to be the orientation you need.

Use the Position tab of the properties window to rotate the component on the Z axis to allow the sim to match the hardware.

Hope this helps.