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

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2017-05-02T13:33:31+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=4&amp;t=18310&amp;mode</id>
<entry>
<author><name><![CDATA[OskarQ1]]></name></author>
<updated>2017-05-02T13:33:31+01:00</updated>
<published>2017-05-02T13:33:31+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=18310&amp;p=188229#p188229</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=18310&amp;p=188229#p188229"/>
<title type="html"><![CDATA[Re: Problem z przyciskiem]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=18310&amp;p=188229#p188229"><![CDATA[
Witam, właśnie poczytaj sobie o drganiach styków bo jeżeli nie będziesz wiedział jak rozwiązać ten problem będzie &quot;wariować&quot; np. po wciśnieciu klawisza odczekaj 80 milisekund, są jeszcze inne metody poczytaj <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /><br /><br />A jak już ogarniesz ten problem, i będziesz robił wiekszy projekt z przyciskami napisz sobie prostą funkcje Np. Przycisk_Wcisniety ktora będzie zwracała wynik 0 lub 1 a Ty zdefiniujesz sobie piny klawiszy i będziesz je wpisywał do funkcji w dowolnym miejscu programu a nie za każdym razem pisać od nowa <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /><br /><br />Np tak:<br /><br />Definicje:<br /><br />[syntax=c]#define KEY_PIN1 (1&lt;&lt;PB0)<br />#define KEY_PIN2 (1&lt;&lt;PB1)[/syntax]<br />Wywołanie:<br /><br />[syntax=c]if(Przycisk_Wcisniety(KEY_PIN1) ) // NP. Zapal diode<br />.<br />.<br />.<br />if(Przycisk_Wcisniety(KEY_PIN2) ) // NP. Zgas diode[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=13373">OskarQ1</a> — 2 maja 2017, o 13:33</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Chaki0981]]></name></author>
<updated>2017-05-02T11:31:11+01:00</updated>
<published>2017-05-02T11:31:11+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=18310&amp;p=188220#p188220</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=18310&amp;p=188220#p188220"/>
<title type="html"><![CDATA[Re: Problem z przyciskiem]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=18310&amp;p=188220#p188220"><![CDATA[
Dobra działa <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":)" title="Szczęśliwy" /> Tylko dioda czasem wariuje :/<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=17055">Chaki0981</a> — 2 maja 2017, o 11:31</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[krish]]></name></author>
<updated>2017-05-02T10:56:16+01:00</updated>
<published>2017-05-02T10:56:16+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=18310&amp;p=188216#p188216</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=18310&amp;p=188216#p188216"/>
<title type="html"><![CDATA[Re: Problem z przyciskiem]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=18310&amp;p=188216#p188216"><![CDATA[
Brak: <br />while(1)<br />{<br />if ........<br />// i żeby widać było mruganie np.:<br />_delay_ms(500);<br />}<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=2273">krish</a> — 2 maja 2017, o 10:56</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Chaki0981]]></name></author>
<updated>2017-05-02T10:45:53+01:00</updated>
<published>2017-05-02T10:45:53+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=18310&amp;p=188214#p188214</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=18310&amp;p=188214#p188214"/>
<title type="html"><![CDATA[Problem z przyciskiem]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=18310&amp;p=188214#p188214"><![CDATA[
Witam, czy może ktoś wskazać mi dziurę w moim rozumowaniu? Od paru godzin siedzę nad paroma linijkami kodu i nie mogę dojść gdzie jest błąd.<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">#include &lt;avr/io.h&gt;<br /><br />int main(void)<br />{<br />   DDRC = 0x08;<br />   PORTC = 0x10;<br /><br />   if(!(PINC&amp;(1&lt;&lt;PC4)))<br />   {<br />      PORTC^=(1&lt;&lt;PC3);<br />   }<br /><br />}<br /></div><br /><br />10 razy to przeanalizowałem i nie mam pojęcia gdzie popełniłem błąd, sprawdzałem wszystkie styki, przycisk i działają. Przycisk mam podpięty pod mase.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=17055">Chaki0981</a> — 2 maja 2017, o 10:45</p><hr />
]]></content>
</entry>
</feed>