<?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: eGUI D4D on FRDM-KE02Z in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-D4D-on-FRDM-KE02Z/m-p/409702#M23059</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Earl.&amp;nbsp; This helps.&amp;nbsp; The problem seems to be that I am never entering the D4D_MSG_UNTOUCHED case.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I set a breakpoint in the D4D_HandleTouchScreen after I had pressed the menu button, and I changed the d4d_TouchScreen_Status so that it would prepare the message D4D_MSG_UNTOUCHED.&amp;nbsp; This caused the OnClick function to execute and finally change screens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The root of the problem was that&amp;nbsp; D4D_TouchScreen_Status was always set to 0x1.&amp;nbsp; With a little bit of searching, I figured out that I was never executing D4D_CheckTouchScreen.&amp;nbsp; Since I was using a custom driver, I was only polling the touchscreen and adding events as they happened.&amp;nbsp; I needed to execute D4D_CheckTouchScreen to also check for when objects are untouched.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jul 2015 13:14:06 GMT</pubDate>
    <dc:creator>michaelsthomas</dc:creator>
    <dc:date>2015-07-15T13:14:06Z</dc:date>
    <item>
      <title>eGUI D4D on FRDM-KE02Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-D4D-on-FRDM-KE02Z/m-p/409700#M23057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using D4D with an adafruit capacitive touchscreen, but cannot get the menu button to change screens.&amp;nbsp; Through debugging, I've determined that I am receiving correct touchscreen coordinates and those are being passed to D4D with D4D_PutTouchScreen.&amp;nbsp; The menu button is recognized as the object that is touched, but it never executes the OnClick function.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why does touching the menu button not result in a screen change?&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-337414"&gt;screen_main.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 14:13:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-D4D-on-FRDM-KE02Z/m-p/409700#M23057</guid>
      <dc:creator>michaelsthomas</dc:creator>
      <dc:date>2015-07-14T14:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: eGUI D4D on FRDM-KE02Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-D4D-on-FRDM-KE02Z/m-p/409701#M23058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, I don't have an Adafruit Capacitive Touchscreen to debug your project but I can do as much as I can to help you to solve that problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was watching the function dependencies to assume a flow in the program. I found that the onClick function is called in the functions &lt;STRONG&gt;D4D_BtnOnKeyUp&lt;/STRONG&gt; and &lt;STRONG&gt;D4D_BtnUnTouched&lt;/STRONG&gt; which are called in the function &lt;STRONG&gt;D4D_BtnOnMessage&lt;/STRONG&gt;, please be sure that the function &lt;STRONG&gt;D4D_BtnOnMessage&lt;/STRONG&gt; is called when you touch the screen and that it enters to the &lt;STRONG&gt;D4D_MSG_UNTOUCHED&lt;/STRONG&gt; case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another thing that I think you must check is that in the function &lt;STRONG&gt;D4D_ManageTouchScreenEvents&lt;/STRONG&gt; the variable &lt;STRONG&gt;d4d_TouchScreen_Status&lt;/STRONG&gt; be modified and then in the function &lt;STRONG&gt;D4D_HandleTouchScreen&lt;/STRONG&gt; the program call the function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="_jivemacro_uid_14369098097407738 jive_macro_code jive_text_macro" data-renderedposition="218_8_1232_32" jivemacro_uid="_14369098097407738"&gt;&lt;P&gt;// Send prepared message&lt;/P&gt;&lt;P&gt;D4D_SendMessageBack(&amp;amp;d4d_msg);&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Earl.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 21:36:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-D4D-on-FRDM-KE02Z/m-p/409701#M23058</guid>
      <dc:creator>EarlOrlando</dc:creator>
      <dc:date>2015-07-14T21:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: eGUI D4D on FRDM-KE02Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-D4D-on-FRDM-KE02Z/m-p/409702#M23059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, Earl.&amp;nbsp; This helps.&amp;nbsp; The problem seems to be that I am never entering the D4D_MSG_UNTOUCHED case.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I set a breakpoint in the D4D_HandleTouchScreen after I had pressed the menu button, and I changed the d4d_TouchScreen_Status so that it would prepare the message D4D_MSG_UNTOUCHED.&amp;nbsp; This caused the OnClick function to execute and finally change screens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The root of the problem was that&amp;nbsp; D4D_TouchScreen_Status was always set to 0x1.&amp;nbsp; With a little bit of searching, I figured out that I was never executing D4D_CheckTouchScreen.&amp;nbsp; Since I was using a custom driver, I was only polling the touchscreen and adding events as they happened.&amp;nbsp; I needed to execute D4D_CheckTouchScreen to also check for when objects are untouched.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 13:14:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-D4D-on-FRDM-KE02Z/m-p/409702#M23059</guid>
      <dc:creator>michaelsthomas</dc:creator>
      <dc:date>2015-07-15T13:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: eGUI D4D on FRDM-KE02Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-D4D-on-FRDM-KE02Z/m-p/409703#M23060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am glad that your problem is solved. If you have any other issue please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Earl.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 15:22:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/eGUI-D4D-on-FRDM-KE02Z/m-p/409703#M23060</guid>
      <dc:creator>EarlOrlando</dc:creator>
      <dc:date>2015-07-15T15:22:30Z</dc:date>
    </item>
  </channel>
</rss>

