<?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 thanks! in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Correction-to-Digital-IO-Example/m-p/1059589#M53455</link>
    <description>&lt;P&gt;thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 20 Nov 2014 21:46:25 GMT</pubDate>
    <dc:creator>Matthias_H_Intel</dc:creator>
    <dc:date>2014-11-20T21:46:25Z</dc:date>
    <item>
      <title>Correction to Digital IO Example</title>
      <link>https://community.intel.com/t5/Software-Archive/Correction-to-Digital-IO-Example/m-p/1059588#M53454</link>
      <description>&lt;P&gt;The Digital IO Example at &lt;A href="https://software.intel.com/en-us/node/519984" target="_blank"&gt;https://software.intel.com/en-us/node/519984&lt;/A&gt;&lt;BR /&gt;
	needs 3 correction to work.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;import &lt;STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;S&gt;&lt;EM&gt;&lt;STRONG&gt;pymraa&lt;/STRONG&gt;&lt;/EM&gt;&lt;/S&gt;&lt;BR /&gt;
	import time&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;gpioLed = &lt;STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;S&gt;&lt;EM&gt;&lt;STRONG&gt;pymraa&lt;/STRONG&gt;&lt;/EM&gt;&lt;/S&gt;.Gpio(2)&lt;BR /&gt;
	gpioLed.dir(&lt;STRONG&gt;&lt;/STRONG&gt;&lt;S&gt;&lt;STRONG&gt;pymraa&lt;/STRONG&gt;&lt;/S&gt;.DIR_OUT)&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;ledState = True&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;while True:&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; gpioLed.write(1 if ledState else 0)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; ledState = not ledState&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; time.sleep(1)&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;Change to:&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;import &lt;STRONG&gt;mraa&lt;/STRONG&gt;&lt;BR /&gt;
	import time&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;gpioLed = &lt;STRONG&gt;mraa&lt;/STRONG&gt;.Gpio(2)&lt;BR /&gt;
	gpioLed.dir(&lt;STRONG&gt;mraa&lt;/STRONG&gt;.DIR_OUT)&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;ledState = True&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;while True:&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; gpioLed.write(1 if ledState else 0)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; ledState = not ledState&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; time.sleep(1)&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Nov 2014 17:55:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Correction-to-Digital-IO-Example/m-p/1059588#M53454</guid>
      <dc:creator>toadaze</dc:creator>
      <dc:date>2014-11-19T17:55:29Z</dc:date>
    </item>
    <item>
      <title>thanks!</title>
      <link>https://community.intel.com/t5/Software-Archive/Correction-to-Digital-IO-Example/m-p/1059589#M53455</link>
      <description>&lt;P&gt;thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Nov 2014 21:46:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Correction-to-Digital-IO-Example/m-p/1059589#M53455</guid>
      <dc:creator>Matthias_H_Intel</dc:creator>
      <dc:date>2014-11-20T21:46:25Z</dc:date>
    </item>
  </channel>
</rss>

