<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic LPC54608 Board cannot display RGB565 image in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-Board-cannot-display-RGB565-image/m-p/703689#M28332</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when I use SDK_2.2_LPC54608J512 - copy\boards\lpcxpresso54608\driver_examples\lcdc\lcdc_cursor demo &amp;nbsp;to display a RGB565 image .in the lcdc_cursor.c &amp;nbsp;I do these&amp;nbsp;modifies:&lt;/P&gt;&lt;P&gt;1.I define a image array &amp;nbsp; ： unsigned const char image[153600]={.0X29,0X64,0XC9,0X5B,0X8A,......}， 320*240 image ，16bbp565.&lt;/P&gt;&lt;P&gt;2.I define two functions :&lt;/P&gt;&lt;P&gt;void lcd_SetPixel(int x, int y, unsigned int uicolor);//piexl &amp;nbsp;position and &amp;nbsp;color&lt;BR /&gt;void lcd_DrawBmp (int ix0,int iy0, int iwidth, int iheight, unsigned short *pucBmp);// image position ,size,and &amp;nbsp;image data&lt;/P&gt;&lt;P&gt;void lcd_SetPixel(int x, int y, unsigned int uicolor) &lt;BR /&gt;{ &lt;BR /&gt; while(1)&lt;BR /&gt; {&lt;BR /&gt; if((x &amp;lt; LCD_WIDTH) &amp;amp;&amp;amp; (y &amp;lt; LCD_HEIGHT)) &lt;BR /&gt; { &lt;BR /&gt; s_frameBufs[y][x] = uicolor &amp;amp; 0xff; &lt;BR /&gt; s_frameBufs[y][x+1] = (uint8_t)uicolor &amp;gt;&amp;gt;8;&lt;/P&gt;&lt;P&gt;// s_frameBufs[y][x] = uicolor ; &lt;BR /&gt; } &lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt; &lt;BR /&gt;void lcd_DrawBmp(int ix0,int iy0, int iwidth, int iheight, unsigned short *pucBmp)&lt;BR /&gt;{&lt;BR /&gt; uint16_t ix, iy;&lt;BR /&gt; uint16_t uicolor;&lt;BR /&gt; &lt;BR /&gt; for (iy = iy0; iy &amp;lt; iheight + iy0; iy++) &lt;BR /&gt; {&lt;BR /&gt; for (ix = ix0; ix &amp;lt; iwidth + ix0; ix = ix+2) &lt;BR /&gt; {&lt;BR /&gt; uicolor = *pucBmp++;&lt;BR /&gt; lcd_SetPixel(ix, iy, uicolor);&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt;}&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3.I &amp;nbsp;do not use the APP_FillBuffer function instead of &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;lcd_DrawBmp&amp;nbsp;（0,0,320,240，(unsigned short *)image）&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;then&amp;nbsp;&amp;nbsp;lcdConfig.bpp=kLCDC_16BPP565 instead of 1BPP.&lt;/P&gt;&lt;P&gt;the lcd other configs are the same as the demo.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but ,download &amp;nbsp;this &amp;nbsp;program ,the TFT lcd do not show image,even nothing.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337859"&gt;image.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Aug 2017 05:01:18 GMT</pubDate>
    <dc:creator>zhixiangzeng</dc:creator>
    <dc:date>2017-08-22T05:01:18Z</dc:date>
    <item>
      <title>LPC54608 Board cannot display RGB565 image</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-Board-cannot-display-RGB565-image/m-p/703689#M28332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when I use SDK_2.2_LPC54608J512 - copy\boards\lpcxpresso54608\driver_examples\lcdc\lcdc_cursor demo &amp;nbsp;to display a RGB565 image .in the lcdc_cursor.c &amp;nbsp;I do these&amp;nbsp;modifies:&lt;/P&gt;&lt;P&gt;1.I define a image array &amp;nbsp; ： unsigned const char image[153600]={.0X29,0X64,0XC9,0X5B,0X8A,......}， 320*240 image ，16bbp565.&lt;/P&gt;&lt;P&gt;2.I define two functions :&lt;/P&gt;&lt;P&gt;void lcd_SetPixel(int x, int y, unsigned int uicolor);//piexl &amp;nbsp;position and &amp;nbsp;color&lt;BR /&gt;void lcd_DrawBmp (int ix0,int iy0, int iwidth, int iheight, unsigned short *pucBmp);// image position ,size,and &amp;nbsp;image data&lt;/P&gt;&lt;P&gt;void lcd_SetPixel(int x, int y, unsigned int uicolor) &lt;BR /&gt;{ &lt;BR /&gt; while(1)&lt;BR /&gt; {&lt;BR /&gt; if((x &amp;lt; LCD_WIDTH) &amp;amp;&amp;amp; (y &amp;lt; LCD_HEIGHT)) &lt;BR /&gt; { &lt;BR /&gt; s_frameBufs[y][x] = uicolor &amp;amp; 0xff; &lt;BR /&gt; s_frameBufs[y][x+1] = (uint8_t)uicolor &amp;gt;&amp;gt;8;&lt;/P&gt;&lt;P&gt;// s_frameBufs[y][x] = uicolor ; &lt;BR /&gt; } &lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt; &lt;BR /&gt;void lcd_DrawBmp(int ix0,int iy0, int iwidth, int iheight, unsigned short *pucBmp)&lt;BR /&gt;{&lt;BR /&gt; uint16_t ix, iy;&lt;BR /&gt; uint16_t uicolor;&lt;BR /&gt; &lt;BR /&gt; for (iy = iy0; iy &amp;lt; iheight + iy0; iy++) &lt;BR /&gt; {&lt;BR /&gt; for (ix = ix0; ix &amp;lt; iwidth + ix0; ix = ix+2) &lt;BR /&gt; {&lt;BR /&gt; uicolor = *pucBmp++;&lt;BR /&gt; lcd_SetPixel(ix, iy, uicolor);&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt;}&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3.I &amp;nbsp;do not use the APP_FillBuffer function instead of &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;lcd_DrawBmp&amp;nbsp;（0,0,320,240，(unsigned short *)image）&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;then&amp;nbsp;&amp;nbsp;lcdConfig.bpp=kLCDC_16BPP565 instead of 1BPP.&lt;/P&gt;&lt;P&gt;the lcd other configs are the same as the demo.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but ,download &amp;nbsp;this &amp;nbsp;program ,the TFT lcd do not show image,even nothing.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337859"&gt;image.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2017 05:01:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-Board-cannot-display-RGB565-image/m-p/703689#M28332</guid>
      <dc:creator>zhixiangzeng</dc:creator>
      <dc:date>2017-08-22T05:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54608 Board cannot display RGB565 image</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-Board-cannot-display-RGB565-image/m-p/703690#M28333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Zhixiang,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I got your updated information about this question in our Chinese EEFOCUS forum, that you already solved this problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; You said, the official code about color palette have problem, you write your own function then solved the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; So, could you also share the details about your solutions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thanks a lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Aug 2017 08:00:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-Board-cannot-display-RGB565-image/m-p/703690#M28333</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2017-08-25T08:00:23Z</dc:date>
    </item>
  </channel>
</rss>

