<?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 Re: using lcd in opposite direction in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/using-lcd-in-opposite-direction/m-p/575291#M19210</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Pacman on Thu Jun 12 05:31:55 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thinking a bit more about this, I'd like to ask you some questions (that you do not have to answer here; they're just for your own consideration, before you run into a dead end)...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1: Is it really possible using the LCD controller, to "reverse" each line of the frame buffer ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2: If you succeed in outputting the last line first and the first line last, are you aware that you need to mirror everything on the display then ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3: If "taking control of the frame-buffer" means reversing it, so it's upside down; then instead of trying to reverse the frame-buffer; wouldn't it make much more sense to keep the frame buffer as is, and then draw everything inside it upside down ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(Note: NXP experts might be able to answer question #1; if it is possible, I'd definitely be interested in knowing this).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;... On the other hand, if you just mean that you're going to draw everything rotated 180 degrees on the screen; go ahead; I believe that's the best way to do it. ;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:58:10 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:58:10Z</dc:date>
    <item>
      <title>using lcd in opposite direction</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/using-lcd-in-opposite-direction/m-p/575285#M19204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by askar on Sun Jun 01 22:54:29 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for some reasons, we want to use 4.3 inch TFT LCD in opposite direction.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i know that we must control frame-buffer in opposite direction, but if we use&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;hardware cursor, would we have any problem in moving cursor?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or every time we can set cursor X and Y&amp;nbsp; to our needed position?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:58:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/using-lcd-in-opposite-direction/m-p/575285#M19204</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: using lcd in opposite direction</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/using-lcd-in-opposite-direction/m-p/575286#M19205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mc on Mon Jun 02 07:25:10 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Asker,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I do not know what do you mean by opposite direction,however you can always synchronize cursor with frame synchronization pulse. There is a bit in Cursor Configuration Register(CRSR_CFG),which can be set. You always know cursor X and y Position&amp;nbsp; in cursor X,Y position register(CRSR_XY).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:58:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/using-lcd-in-opposite-direction/m-p/575286#M19205</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: using lcd in opposite direction</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/using-lcd-in-opposite-direction/m-p/575287#M19206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by askar on Mon Jun 02 21:53:36 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi mc,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your answer,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I mean that we must rotate LCD 180 degrees and then install it in our case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:58:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/using-lcd-in-opposite-direction/m-p/575287#M19206</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: using lcd in opposite direction</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/using-lcd-in-opposite-direction/m-p/575288#M19207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Martin84 on Tue Jun 03 00:05:17 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you using emWin? Look in the emWin-manual. There is explained how you could easily change display orientation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards and good luck ;-)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:58:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/using-lcd-in-opposite-direction/m-p/575288#M19207</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: using lcd in opposite direction</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/using-lcd-in-opposite-direction/m-p/575289#M19208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by askar on Thu Jun 05 22:47:34 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Martin84,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your reply, no we do not use emWin. we will control the framebuffer by ourselves.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:58:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/using-lcd-in-opposite-direction/m-p/575289#M19208</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: using lcd in opposite direction</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/using-lcd-in-opposite-direction/m-p/575290#M19209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Pacman on Wed Jun 11 23:39:46 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;In that case, I'd suggest that you just flip your cursor image and subtract Y from the height of the display. :)&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:58:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/using-lcd-in-opposite-direction/m-p/575290#M19209</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: using lcd in opposite direction</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/using-lcd-in-opposite-direction/m-p/575291#M19210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Pacman on Thu Jun 12 05:31:55 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thinking a bit more about this, I'd like to ask you some questions (that you do not have to answer here; they're just for your own consideration, before you run into a dead end)...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1: Is it really possible using the LCD controller, to "reverse" each line of the frame buffer ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2: If you succeed in outputting the last line first and the first line last, are you aware that you need to mirror everything on the display then ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3: If "taking control of the frame-buffer" means reversing it, so it's upside down; then instead of trying to reverse the frame-buffer; wouldn't it make much more sense to keep the frame buffer as is, and then draw everything inside it upside down ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(Note: NXP experts might be able to answer question #1; if it is possible, I'd definitely be interested in knowing this).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;... On the other hand, if you just mean that you're going to draw everything rotated 180 degrees on the screen; go ahead; I believe that's the best way to do it. ;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:58:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/using-lcd-in-opposite-direction/m-p/575291#M19210</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: using lcd in opposite direction</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/using-lcd-in-opposite-direction/m-p/575292#M19211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by askar on Fri Jun 13 20:25:12 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Pacman,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your reply,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;we have our own fonts designed in English and non-English languages also many icons and images&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;with different wall-papers that are designed and used. so we can not re design those to be reversed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;only with reverse processing in frame-buffer, we can show above items correctly on LCD.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think there will be no problem in reverse processing of frame-buffer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:58:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/using-lcd-in-opposite-direction/m-p/575292#M19211</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: using lcd in opposite direction</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/using-lcd-in-opposite-direction/m-p/575293#M19212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Pacman on Sat Jun 14 10:58:52 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;You don't need to re-design the fonts and images.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course you can process them while outputting them to the screen, however, in most cases, it will pay to prepare them for display on the microcontroller.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Eg. Make an optimized version of the original files; the optimized version are all pre-rotated by your development computer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Since the data is pre-rotated, the microcontroller will not have to spend a lot of CPU-time rotating them before outputting the images, and the user-experience willl be much better.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For all kinds of applications, I always recommend optimizing your data, so the data is laid out in a way that is easy for the CPU (microcontroller in this case) to process the data. Eg: Make sure the microcontroller does as little work as it can; it likes being lazy. ;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:58:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/using-lcd-in-opposite-direction/m-p/575293#M19212</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:58:11Z</dc:date>
    </item>
  </channel>
</rss>

