<?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 D4D_CONSOLE save text in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/D4D-CONSOLE-save-text/m-p/167667#M1035</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;is it possible to save the whole text of a console in an array ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I set the cursor on the position&amp;nbsp; with a touch on the touchscreen?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 17 Sep 2011 13:22:48 GMT</pubDate>
    <dc:creator>Thommi_Tulpe</dc:creator>
    <dc:date>2011-09-17T13:22:48Z</dc:date>
    <item>
      <title>D4D_CONSOLE save text</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/D4D-CONSOLE-save-text/m-p/167667#M1035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;is it possible to save the whole text of a console in an array ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I set the cursor on the position&amp;nbsp; with a touch on the touchscreen?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Sep 2011 13:22:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/D4D-CONSOLE-save-text/m-p/167667#M1035</guid>
      <dc:creator>Thommi_Tulpe</dc:creator>
      <dc:date>2011-09-17T13:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: D4D_CONSOLE save text</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/D4D-CONSOLE-save-text/m-p/167668#M1036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Console object has an internal text array:&lt;/P&gt;&lt;P&gt;﻿﻿static D4D_CHAR name##_txtArray[line_cnt][char_cnt + 1];\&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can copy that array (line by line) to different array.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can detect the touch in cosole with pOnUsrMsg call back function defined. Then, if the message is D4D_MSG_TOUCHED, calculate the position of cursor with the touch position [&lt;/P&gt;&lt;P&gt;D4D_POINT D4D_GetTouchScreenCoordinates(void);]&lt;/P&gt;&lt;P&gt;&amp;nbsp;and&amp;nbsp;move the cursor accordinly.&lt;/P&gt;&lt;P&gt;D4D_CnslGoToXY(D4D_OBJECT_PTR pObj, D4D_POINT newPosition)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have never done, but I think is possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bets Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Sep 2011 20:42:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/D4D-CONSOLE-save-text/m-p/167668#M1036</guid>
      <dc:creator>LuisCasado</dc:creator>
      <dc:date>2011-09-17T20:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: D4D_CONSOLE save text</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/D4D-CONSOLE-save-text/m-p/167669#M1037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;and thank you for your fast answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Were is the name##_txtArray[line_cnt][char_cnt + 1]﻿ array defined and what do I have to write for&lt;/P&gt;&lt;P&gt;name##﻿ ?&lt;/P&gt;&lt;P&gt;My Console is declared as followd:&lt;/P&gt;&lt;P&gt;D4D_DECLARE_STD_CONSOLE(scrMain_Cons, "Kinetis Assembler", 0, 0, 320, 214, 100, 20,&amp;amp;bmpFreescale, FONT_ARIAL7, FONT_BERLIN_SANS_FBDEMI12)﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I highlite the cursor by setting any flag ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and have a nice weekend&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Sep 2011 21:28:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/D4D-CONSOLE-save-text/m-p/167669#M1037</guid>
      <dc:creator>Thommi_Tulpe</dc:creator>
      <dc:date>2011-09-17T21:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: D4D_CONSOLE save text</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/D4D-CONSOLE-save-text/m-p/167670#M1038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i found the text array. It is called scrMain_Cons_textArray[x][y].&lt;/P&gt;&lt;P&gt;But in this array I can't see the first line. The array beginns with the first character of the second line in [0][0].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Sep 2011 13:48:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/D4D-CONSOLE-save-text/m-p/167670#M1038</guid>
      <dc:creator>Thommi_Tulpe</dc:creator>
      <dc:date>2011-09-18T13:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: D4D_CONSOLE save text</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/D4D-CONSOLE-save-text/m-p/167671#M1039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thommi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is not the right array.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you run the eGUI demo, you can add watch : ﻿﻿scrLog_CnslLog_txtArray See attached image. You will see all the lines in the array. 'name' must be the name of the console object.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding cursor, ﻿﻿&lt;/P&gt;&lt;P&gt;D4D_CNSL_CURSOR_BLINK_TICK_COUNTER&lt;/P&gt;&lt;P&gt;is the constant to define the blink period, 0 is no cursor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Sep 2011 21:21:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/D4D-CONSOLE-save-text/m-p/167671#M1039</guid>
      <dc:creator>LuisCasado</dc:creator>
      <dc:date>2011-09-18T21:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: D4D_CONSOLE save text</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/D4D-CONSOLE-save-text/m-p/167672#M1040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Luis,&lt;/P&gt;&lt;P&gt;thank you for your answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I have the right array. Im not using the demo.&lt;/P&gt;&lt;P&gt;I have a Console on the main screen (d4d_screen_main.c).&lt;/P&gt;&lt;P&gt;The Console is decleard as:&amp;nbsp; D4D_DECLARE_SCREEN_OBJECT(scrMain_Cons)﻿&lt;/P&gt;&lt;P&gt;So the array has the name: scrMain_Cons_txtArray[ ][ ] .&lt;/P&gt;&lt;P&gt;And in this array I can´t see the firs line. The array begins with the caracters of the second line of the Console.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The&amp;nbsp; macro D4D_CNSL_CURSOR_BLINK_TICK_COUNTER﻿ is set to 10 (default) but the&lt;/P&gt;&lt;P&gt;cursor will not blink (I can't see the cursor)&lt;/P&gt;&lt;P&gt;Do I have to set a flag in the d4d_user_cfg.h file ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 04:33:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/D4D-CONSOLE-save-text/m-p/167672#M1040</guid>
      <dc:creator>Thommi_Tulpe</dc:creator>
      <dc:date>2011-09-19T04:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: D4D_CONSOLE save text</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/D4D-CONSOLE-save-text/m-p/167673#M1041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;regarding to cursor, the issue should be that you have to also periodically call (in some function on time event) function void D4D_TimeTickPut(void)﻿ that notify eGUI about new time event and the macro&amp;nbsp;D4D_CNSL_CURSOR_BLINK_TICK_COUNTER﻿ define how many these tick will be needed to blink with cursor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I take a look on the issue with array and let you now later in this thread.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gargy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 11:52:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/D4D-CONSOLE-save-text/m-p/167673#M1041</guid>
      <dc:creator>Gargy</dc:creator>
      <dc:date>2011-09-20T11:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: D4D_CONSOLE save text</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/D4D-CONSOLE-save-text/m-p/167674#M1042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;regarding the first line in D4D_CONSOLE object:&lt;/P&gt;&lt;P&gt;The line is normally stored on end of defined text array (from any historical reason) but if want to move it on start of console array try to change this line in d4d_console.h :&lt;/P&gt;&lt;P&gt;static D4D_CNSL_DATA name##_data = { line_cnt - 1, {0, 0}, D4D_FALSE, 0, 0};\﻿&lt;/P&gt;&lt;P&gt;to this state&lt;/P&gt;&lt;P&gt;static D4D_CNSL_DATA name##_data = { /*line_cnt - 1*/ 0, {0, 0}, D4D_FALSE, 0, 0};\﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try it and everithig looks fine but this is without any warranty :-D&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gargy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 18:21:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/D4D-CONSOLE-save-text/m-p/167674#M1042</guid>
      <dc:creator>Gargy</dc:creator>
      <dc:date>2011-09-20T18:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: D4D_CONSOLE save text</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/D4D-CONSOLE-save-text/m-p/167675#M1043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gargy﻿,&lt;/P&gt;&lt;P&gt;thank you,t he cursor is blinking and the array is O.K.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also have a little problem with the cursor.&lt;/P&gt;&lt;P&gt;When I put the cursor to a special position with&lt;/P&gt;&lt;P&gt;the command&lt;/P&gt;&lt;P&gt;cursor_position.x = 1;&lt;BR /&gt;cursor_position.y = 2;&lt;BR /&gt;(void) D4D_CnslGoToXY(&amp;amp;scrMain_Cons, cursor_position);﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The cursor is displayed at the last position of the correct line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After that I insert a character with the command:&lt;/P&gt;&lt;P&gt;(void)D4D_CnslPutString(&amp;amp;scrMain_Cons, "X");﻿&lt;/P&gt;&lt;P&gt;The "X" is on position&amp;nbsp; 1 in line 2, but the cursor is showen at the end of the line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For your information, im writing code for a virtual keyboard.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 04:11:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/D4D-CONSOLE-save-text/m-p/167675#M1043</guid>
      <dc:creator>Thommi_Tulpe</dc:creator>
      <dc:date>2011-09-21T04:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: D4D_CONSOLE save text</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/D4D-CONSOLE-save-text/m-p/167676#M1044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Luis, thank you Gargy﻿&lt;/P&gt;&lt;P&gt;for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I posted the cursor problem in another message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2011 15:02:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/D4D-CONSOLE-save-text/m-p/167676#M1044</guid>
      <dc:creator>Thommi_Tulpe</dc:creator>
      <dc:date>2011-09-26T15:02:59Z</dc:date>
    </item>
  </channel>
</rss>

