Home > Arduino Projects > Arduino Mega and ILI9320 Display

Arduino Mega and ILI9320 Display

Hi everybody.
Last week I started making a ILI9320 library for the Arduino Mega, as I was hoping it would work with my 2.8″ Display (with a ILI9320 controller of course).
After a couple of hours I’ve made the code doing the timings correctly, and then I made a simple PutPixel routine. It worked, so I continued to make a Text function, and afterwards different polygons commands.
When I had made all these commands I began to optimise everything, as the Arduino isn’t running fast enough, so a complete screen clear takes about 2-3 second. After a couple of days optimizing, I got it down to 1 second, and other commands such as rectangle was alot faster. I had also made a function so I could “scroll” the screen – which is descriped in the ILI9320 datasheet!

Here you can see some pictures of the final version, and download the code here: Arduino Mega and ILI9320 code

Arduino Mega and a 2.8-inch display (ILI9320)


A close up of the Hello World screen

  1. September 5th, 2010 at 15:15 | #1

    Thomas,
    thank you very much for sharing your experinece with us. Is it possible to have connection diagram also? thank you very much in advance, reha

  2. September 6th, 2010 at 10:21 | #2

    @reha
    I don’t have any connection diagram, as I’ve just wrote the connections in the top of the code.
    It takes a lot longer making a connection diagram, and when the circuit isn’t bigger than this, I don’t see the need to make one!

    This is the connections:
    Arduino Pin -> LCD Pin
    22 -> DB0
    23 -> DB1
    24 -> DB2
    25 -> DB3
    26 -> DB4
    27 -> DB5
    28 -> DB6
    29 -> DB7
    30 -> RS
    31 -> CS
    32 -> WR
    33 -> RD
    34 -> RESET

  1. July 1st, 2010 at 10:58 | #1