<?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=51&amp;t=22201&amp;mode" />

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2019-04-29T15:40:21+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=51&amp;t=22201&amp;mode</id>
<entry>
<author><name><![CDATA[Szofer]]></name></author>
<updated>2019-04-29T15:40:21+01:00</updated>
<published>2019-04-29T15:40:21+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=22201&amp;p=218555#p218555</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=22201&amp;p=218555#p218555"/>
<title type="html"><![CDATA[Re: Dioda zmienia stan 5 razy]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=22201&amp;p=218555#p218555"><![CDATA[
Można, ale nie wiemy co autor chce osiągnąć, pobawić sie w miganie, czy użyć do projektu.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=7664">Szofer</a> — 29 kwi 2019, o 15:40</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Lu_let]]></name></author>
<updated>2019-04-29T15:20:28+01:00</updated>
<published>2019-04-29T15:20:28+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=22201&amp;p=218553#p218553</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=22201&amp;p=218553#p218553"/>
<title type="html"><![CDATA[Re: Dioda zmienia stan 5 razy]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=22201&amp;p=218553#p218553"><![CDATA[
Dzięki za pomoc.<br />Zrobiłem tak.<br />[syntax=c]int main(void) {<br />pin_init();<br />uint8_t a=1;<br />while(1) {<br />           if(a==1) {<br />              for(a=0;a&lt;=10;a++) {<br />      PORTB ^= (1&lt;&lt;PB5);<br />      _delay_ms(400);<br />      }   a=0;<br />           }<br />        }<br />}[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=14494">Lu_let</a> — 29 kwi 2019, o 15:20</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Szofer]]></name></author>
<updated>2019-04-29T12:24:37+01:00</updated>
<published>2019-04-29T12:24:37+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=22201&amp;p=218551#p218551</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=22201&amp;p=218551#p218551"/>
<title type="html"><![CDATA[Re: Dioda zmienia stan 5 razy]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=22201&amp;p=218551#p218551"><![CDATA[
Lub wyciag do funkcji z warunkiem do petli while<br /><br />W globalnych dodaj<br /><br />uint8_t dioda = 0 ;<br /><br />w while<br /><br />If(dioda==0)<br />{<br />miganie() ;<br />}<br /><br />a w for dopisz linijke na koncu petli for<br /><br />If ( i == 5) dioda = 1;<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=7664">Szofer</a> — 29 kwi 2019, o 12:24</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[kazekat]]></name></author>
<updated>2019-04-29T07:59:16+01:00</updated>
<published>2019-04-29T07:59:16+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=22201&amp;p=218538#p218538</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=22201&amp;p=218538#p218538"/>
<title type="html"><![CDATA[Re: Dioda zmienia stan 5 razy]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=22201&amp;p=218538#p218538"><![CDATA[
Albo dodatkową while(1) bez ciała za for.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=17021">kazekat</a> — 29 kwi 2019, o 07:59</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Marhef]]></name></author>
<updated>2019-04-29T07:54:02+01:00</updated>
<published>2019-04-29T07:54:02+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=22201&amp;p=218536#p218536</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=22201&amp;p=218536#p218536"/>
<title type="html"><![CDATA[Re: Dioda zmienia stan 5 razy]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=22201&amp;p=218536#p218536"><![CDATA[
Albo wrzucić pętlę for przed while(1)<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=12752">Marhef</a> — 29 kwi 2019, o 07:54</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[kazekat]]></name></author>
<updated>2019-04-28T23:20:23+01:00</updated>
<published>2019-04-28T23:20:23+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=22201&amp;p=218533#p218533</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=22201&amp;p=218533#p218533"/>
<title type="html"><![CDATA[Re: Dioda zmienia stan 5 razy]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=22201&amp;p=218533#p218533"><![CDATA[
For jest wewnątrz pętli while i ona wykonuje się w nieskończoność.<br />Aby zobaczyć kiedy skończy się for można wstawić długiego delaya<br />np:<br />[syntax=c]while(1) {<br />     <br />                    for(uint8_t i = 0;i&lt;5;++i){<br />     <br />                            PORTB ^= (1&lt;&lt;PB2);<br />                            _delay_ms(400);<br />                    }<br />      _delay_ms(2000); <br />            }[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=17021">kazekat</a> — 28 kwi 2019, o 23:20</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Lu_let]]></name></author>
<updated>2019-04-28T22:30:04+01:00</updated>
<published>2019-04-28T22:30:04+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=22201&amp;p=218532#p218532</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=22201&amp;p=218532#p218532"/>
<title type="html"><![CDATA[Dioda zmienia stan 5 razy]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=22201&amp;p=218532#p218532"><![CDATA[
Spodziewałem się ze dioda zmieni stan 5 razy i przestanie mrugać, ale miga ciągle.<br />Czy to jest dobrze napisane?<br /><br />[syntax=c]while(1) {<br /><br />for(uint8_t i = 0;i&lt;5;++i){<br /><br />PORTB ^= (1&lt;&lt;PB2);<br />_delay_ms(400);<br />}<br />}[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=14494">Lu_let</a> — 28 kwi 2019, o 22:30</p><hr />
]]></content>
</entry>
</feed>