Skip to main content
tkjmail
Associate II
January 3, 2009
Question

STM32F103 and ILI9320 QTFT display

  • January 3, 2009
  • 13 replies
  • 2103 views
Posted on January 03, 2010 at 17:47

STM32F103 and ILI9320 QTFT display

    This topic has been closed for replies.

    13 replies

    tkjmail
    tkjmailAuthor
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 13:36

    I think there are many others like me, looking for some ILI9320 8-bit code...

    So isn't there a simple step to convert the 16-bit to 8-bit code?

    I have found every command in the code to be 16-bit, so first of all, they need to be translated, as stated in the datasheet!

    Also, where in the code is the pins, where the LCD is connected, defined?

    tkjmail2
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 13:36

    Hi Mariem.

    First I have to say that you don't have to post 3 posts with the same context, this won't speed up the process helping you!

    About your problem, I haven't used ST's picture function, as I've made my own. You can check this thread for more information about that code and some errors with it:

    https://my.st.com/public/STe2ecommunities/mcu/Lists/ARM%20CortexM3%20STM32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/ARM CortexM3 STM32/Hard Fault error

    Best Regards

    Thomas Jespersen

    mariemzidi
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 13:36

    Hi jj.sprague,

    I'm trying to display images on the LCD screen (ILI9329) using an STM32F103ZET6, the problem that I couldn't display colored pictures, I used the ''LCD_WriteBMP function'' for that and I tried with monochrome pictures and it worked well using the ''LCD_DrawMonoBMP function'' which is provided for displaying monochrome BMPs.(these functions are from the demo's in the STonline)

    Actually, I convert the images into an hex code using a software called the Hex Workshop then I put the image as a const

    like this for example:

     const unsigned char IMAGE[] :{

    0x00, 0xFF, 0xFF,  0x00, 0xFF, 0xFF, 

    0x00, 0xFF, 0xFF,  0x00, 0xFF, 0xFF, 

    0x00, 0xFF, 0xFF,  0x00, 0xFF, 0xFF, 

    };

    an then in the call of the function :

    LCD_WriteBMP((u32) IMAGE);  // if it's a colored picture //

    LCD_DrawMonoBMP((u32) IMAGE);  // if it's a  monochrome picture //

    the monochrome picture displayed corretly but the colored one is not clear.

    Please if there is any idea to help me I would be very gratefull.

    Looking forward to hearing from you..

    Best Regards

    Mariem