<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pl-pl">
<link rel="self" type="application/atom+xml" href="https://forum.atnel.pl/feed.php?f=47&amp;t=5761&amp;mode" />

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2014-01-31T13:54:42+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=47&amp;t=5761&amp;mode</id>
<entry>
<author><name><![CDATA[drumik]]></name></author>
<updated>2014-01-31T13:54:42+01:00</updated>
<published>2014-01-31T13:54:42+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=5761&amp;p=67613#p67613</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=5761&amp;p=67613#p67613"/>
<title type="html"><![CDATA[Re: pytanie o kod bardzo początkującego]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=5761&amp;p=67613#p67613"><![CDATA[
Dziękuję bardzo<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=2577">drumik</a> — 31 sty 2014, o 13:54</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Waldek_jb]]></name></author>
<updated>2014-01-31T13:28:24+01:00</updated>
<published>2014-01-31T13:28:24+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=5761&amp;p=67612#p67612</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=5761&amp;p=67612#p67612"/>
<title type="html"><![CDATA[Re: pytanie o kod bardzo początkującego]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=5761&amp;p=67612#p67612"><![CDATA[
W pierwszym przypadku   |=1&lt;&lt;   PORTD masz ustawiony na stan wysoki H<br />           w drugim              &amp;= ~    PORTD   ustawiony stan niski (zerowanie bitu) L<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1693">Waldek_jb</a> — 31 sty 2014, o 13:28</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[barney]]></name></author>
<updated>2014-01-31T13:09:57+01:00</updated>
<published>2014-01-31T13:09:57+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=5761&amp;p=67608#p67608</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=5761&amp;p=67608#p67608"/>
<title type="html"><![CDATA[Re: pytanie o kod bardzo początkującego]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=5761&amp;p=67608#p67608"><![CDATA[
(_state_ ? PORTD |= 1 &lt;&lt; _pin_ : PORTD &amp;= ~(1 &lt;&lt; _pin_ )) <br />==<br />[syntax=c]if (_state_)<br />PORTD |= 1 &lt;&lt; _pin_ ; // dla _state_!=0<br />else<br />PORTD &amp;= ~(1 &lt;&lt; _pin_ ); // dla _state_==0[/syntax]<br /><br />Czyli taki troszkę zakręcony sposób na zmianę stanu pinu uC <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=973">barney</a> — 31 sty 2014, o 13:09</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[drumik]]></name></author>
<updated>2014-01-31T13:02:10+01:00</updated>
<published>2014-01-31T13:02:10+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=5761&amp;p=67607#p67607</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=5761&amp;p=67607#p67607"/>
<title type="html"><![CDATA[pytanie o kod bardzo początkującego]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=5761&amp;p=67607#p67607"><![CDATA[
Witam serdecznie <br />Na początku chciałbym zaznaczyć że jestem bardzo początkującym w temacie elektroniki i programowania w C dlatego też proszę o wyrozumiałość <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":)" title="Szczęśliwy" /><br />Prosiłbym Szanownych Kolegów o wyjaśnienie tego fragmentu kodu<br />[syntax]#define fastWrite(_pin_, _state_) (_state_ ?  PORTD |= 1 &lt;&lt; _pin_ : PORTD &amp;= ~(1 &lt;&lt; _pin_ ))[/syntax]<br />O ile #define i fastWrite(_pin_, _state_)  jest dla mnie jasne to dalszej części nie rozumiem <br />Z góry bardzo dziękuje<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=2577">drumik</a> — 31 sty 2014, o 13:02</p><hr />
]]></content>
</entry>
</feed>