Problem with displaying a bitmap on LCD 320 * 240 ILI 9325


+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Ledroj
    Guest Ledroj's Avatar

    0 Not allowed!

    Default Problem with displaying a bitmap on LCD 320 * 240 ILI 9325

    Hi, I do not know if this is the right place to ask for help about the 320 * 240 LCD with ILI9325 controller. I have connected it to a 18LF26K22, using the PORB as a data port, I set the pins correctly, and everything works perfect , But it does not work for me painting a bitmap.
    The image is a photo of 133 * 83. The photo is converted into data with the program ImageConverter565, output for C, which is then replaced by 0x by $ and the end of lines with _
    I created a tag with the name of the bitmap and then the Cdata command
    Example......
    PHOTO:
    Cdata $00C6, $00C6, $00C6, $00C6, $00C6,$ 00C6............. , _
    $25E5, $18C5, $00E6, $00E6, $00A6, $00C7............. etc...

    And thus full data
    To print the bitmap in lcd I used the commands:

    COUNT1 = 0 (word type)
    For wXpos = 20 To 20 + 133
    For wYpos = 20 To 20 + 83
    wPixelColour = CRead PHOTO + COUNT1
    GLCD_Plot (wXpos, wYpos)
    Inc COUNT1
    Next
    Next

    I can not get the photo out correctly, and I do not understand where the problem is.
    Someone could help me, thank you in advance for the help.
    Ledroj

Attention

This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

The advertisements we display are relevant to this web site and your browsing history

Please consider supporting us by disabling your ad blocker.


Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

If you can, please report issues in the forum area WebSite / Forum Issues


Thank you for your attention.

  • #2
    Prolific Poster John Drew's Avatar
    Join Date
    Feb 2002
    Posts
    2,798
    Thumbs Up
    Received: 87
    Given: 34
    Total Downloaded
    4.53 GB

    0 Not allowed!

    Default Re: Problem with displaying a bitmap on LCD 320 * 240 ILI 9325

    I think when using cdata that you have to use ORG. Check the manual.
    John

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #3
    Ledroj
    Guest Ledroj's Avatar

    0 Not allowed!

    Default Re: Problem with displaying a bitmap on LCD 320 * 240 ILI 9325

    Hi, John, thanks for your help.
    I have always used the CDATA, preceded by a tag XXXX: which places the org automatically behind the instructions, and sets the value to the XXXX: label as a constant.
    I do not know if I'm in error.

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #4
    Prolific Poster John Drew's Avatar
    Join Date
    Feb 2002
    Posts
    2,798
    Thumbs Up
    Received: 87
    Given: 34
    Total Downloaded
    4.53 GB

    0 Not allowed!

    Default Re: Problem with displaying a bitmap on LCD 320 * 240 ILI 9325

    Hi Ledroj
    I don't know if this comment is true or not but I wonder if when you write:
    Cdata $00C6, $00C6, $00C6, $00C6, $00C6,$ 00C6............. , _
    $25E5, $18C5, $00E6, $00E6, $00A6, $00C7............. etc...
    that the $00C6 is being interpreted as $C6 which would be saved in a byte while $25E5 would be saved as a word.This would confuse the eread.
    Consider writing:
    Cdata word $00C6, word $00C6 etc

    Worth a try.
    John

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #5
    Ledroj
    Guest Ledroj's Avatar

    0 Not allowed!

    Default Re: Problem with displaying a bitmap on LCD 320 * 240 ILI 9325

    Hi John.
    I have done to try placing Word before each item of the data.
    But I have not achieved good results.
    The object is to read a 16bit variable which will be the wPixelColour of the GLCD_Plot command.
    Thanks for your help

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #6
    Prolific Poster John Drew's Avatar
    Join Date
    Feb 2002
    Posts
    2,798
    Thumbs Up
    Received: 87
    Given: 34
    Total Downloaded
    4.53 GB

    0 Not allowed!

    Default Re: Problem with displaying a bitmap on LCD 320 * 240 ILI 9325

    Hi Ledroj,
    I've never used graphics so can't be very useful. Can you zip up a stripped down version that shows the problem and attach it to a post? There may be someone else who can check it for you.
    John

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #7
    Prolific Poster charliecoultas's Avatar
    Join Date
    Sep 2010
    Posts
    1,353
    Thumbs Up
    Received: 44
    Given: 39
    Total Downloaded
    3.36 GB

    0 Not allowed!

    Default Re: Problem with displaying a bitmap on LCD 320 * 240 ILI 9325

    Hi Ledroj

    I use this technique very successfully like this:

    Dim chr_tablea As Code = "f",27, "l",31, " ",4, "A",24, "B",19, "C",14, "D",18, "E",16, "F",22, "G",11

    Then access it like this:

    temp0 = CRead8 chr_tablea[tablindx]


    Charlie

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

    Thread Information

    Users Browsing this Thread

    There are currently 1 users browsing this thread. (0 members and 1 guests)

       

    Similar Threads

    1. Replies: 13
      Last Post: 11th October 2010, 02:23
    2. 320 x 240 LCD
      By Jezsmith in forum Proton Plus Compiler v3
      Replies: 2
      Last Post: 4th January 2009, 13:52
    3. [SOLVED !] Need bitmap converter for larger LCD's
      By J. Mark Wolf in forum Proton Plus Compiler v3
      Replies: 33
      Last Post: 21st March 2007, 08:43
    4. [SOLVED !] LCD Displaying garbage
      By Paul Shepard in forum Proton Plus Compiler v3
      Replies: 15
      Last Post: 29th October 2005, 06:16

    Members who have read this thread since 25th November 2019, 09:25 : 2

    Actions :  (Set Date)  (Clear Date)

    You do not have permission to view the list of names.

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts