cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F103 and ILI9320 QTFT display

tkjmail
Associate II
Posted on January 03, 2010 at 17:47

STM32F103 and ILI9320 QTFT display

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

Hi tkjmail,

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

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

Hi tkjmail,

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

mariemzidi
Associate II
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

tkjmail2
Associate II
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