<?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>Rapid IoTのトピックRe: How to triger (reset) a timer element (NXP Rapid IoT)?</title>
    <link>https://community.nxp.com/t5/Rapid-IoT/How-to-triger-reset-a-timer-element-NXP-Rapid-IoT/m-p/864115#M370</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ho&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recognized the Interval is confusing on this - I used it too the first time to create a delay but it is not the right way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is currently no element to implement a 'real' dealy.&lt;/P&gt;&lt;P&gt;You have to append the code in the code editor to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See for example how the buzzer sound duration is set in the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ATMO_Status_t EmbeddedNxpRpkBuzzer_beep(ATMO_Value_t *in, ATMO_Value_t *out) {&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ATMO_MK64F_Buzzer_On();&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;ATMO_PLATFORM_DelayMilliseconds(200);&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ATMO_MK64F_Buzzer_Off();&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: small; "&gt;return&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt; ATMO_Status_Success;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to call ATMO_PLATFORM_DelayMilliseconds()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might also check the code for&lt;/P&gt;&lt;P&gt;ATMO_DelayMillisecondsNonBlock()&lt;/P&gt;&lt;P&gt;but I never used this one myself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Feb 2019 08:00:02 GMT</pubDate>
    <dc:creator>Eric_Ma</dc:creator>
    <dc:date>2019-02-04T08:00:02Z</dc:date>
    <item>
      <title>How to triger (reset) a timer element (NXP Rapid IoT)?</title>
      <link>https://community.nxp.com/t5/Rapid-IoT/How-to-triger-reset-a-timer-element-NXP-Rapid-IoT/m-p/864112#M367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am struggling to find out how to triger (reset) a timer element to perform some action some time after another action. For example I want to have the backlight off, set it to high after the touch button is touched and dim it again after 3 seconds.&lt;/P&gt;&lt;P&gt;I am able to let the Interval element cycle but this would mean the backlight is switched off in ramdom intervals after the button is touched. I would like to have it always in let's say 3 seconds after the touch happened.&lt;/P&gt;&lt;P&gt;How to reach this?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/77184iBA030A100BD43601/image-size/large?v=v2&amp;amp;px=999" title="NXP Rapid IoT - bakklighttimer.PNG" alt="NXP Rapid IoT - bakklighttimer.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2019 20:14:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Rapid-IoT/How-to-triger-reset-a-timer-element-NXP-Rapid-IoT/m-p/864112#M367</guid>
      <dc:creator>vilem</dc:creator>
      <dc:date>2019-01-25T20:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to triger (reset) a timer element (NXP Rapid IoT)?</title>
      <link>https://community.nxp.com/t5/Rapid-IoT/How-to-triger-reset-a-timer-element-NXP-Rapid-IoT/m-p/864113#M368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vilem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am understanding, your application or only this button, it will on/off the Light and if the user touch the button for 3 seconds, the user will be able to dimmer the light, isn't it?&lt;/P&gt;&lt;P&gt;But, I am not following this requirement.&lt;/P&gt;&lt;P&gt;"I am able to let the Interval element cycle but this would mean the backlight is switched off in random intervals after the button is touched. I would like to have it always in let's say 3 seconds after the touch happened."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2019 23:32:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Rapid-IoT/How-to-triger-reset-a-timer-element-NXP-Rapid-IoT/m-p/864113#M368</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2019-02-01T23:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to triger (reset) a timer element (NXP Rapid IoT)?</title>
      <link>https://community.nxp.com/t5/Rapid-IoT/How-to-triger-reset-a-timer-element-NXP-Rapid-IoT/m-p/864114#M369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to reach this: After (a short) touch is the backlight switched on an goes off in 3 seconds (if no other touch detected).&lt;/P&gt;&lt;P&gt;So the touch should 1) switch the light on and 2) start/reset the 3 seconds countdown interval.&lt;/P&gt;&lt;P&gt;...and I am not able to really control the interval behaviour.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Feb 2019 09:00:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Rapid-IoT/How-to-triger-reset-a-timer-element-NXP-Rapid-IoT/m-p/864114#M369</guid>
      <dc:creator>vilem</dc:creator>
      <dc:date>2019-02-02T09:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to triger (reset) a timer element (NXP Rapid IoT)?</title>
      <link>https://community.nxp.com/t5/Rapid-IoT/How-to-triger-reset-a-timer-element-NXP-Rapid-IoT/m-p/864115#M370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ho&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recognized the Interval is confusing on this - I used it too the first time to create a delay but it is not the right way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is currently no element to implement a 'real' dealy.&lt;/P&gt;&lt;P&gt;You have to append the code in the code editor to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See for example how the buzzer sound duration is set in the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ATMO_Status_t EmbeddedNxpRpkBuzzer_beep(ATMO_Value_t *in, ATMO_Value_t *out) {&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ATMO_MK64F_Buzzer_On();&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;ATMO_PLATFORM_DelayMilliseconds(200);&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ATMO_MK64F_Buzzer_Off();&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: small; "&gt;return&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt; ATMO_Status_Success;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to call ATMO_PLATFORM_DelayMilliseconds()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might also check the code for&lt;/P&gt;&lt;P&gt;ATMO_DelayMillisecondsNonBlock()&lt;/P&gt;&lt;P&gt;but I never used this one myself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2019 08:00:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Rapid-IoT/How-to-triger-reset-a-timer-element-NXP-Rapid-IoT/m-p/864115#M370</guid>
      <dc:creator>Eric_Ma</dc:creator>
      <dc:date>2019-02-04T08:00:02Z</dc:date>
    </item>
  </channel>
</rss>

