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

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2017-04-17T19:12:34+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=30&amp;t=18176&amp;mode</id>
<entry>
<author><name><![CDATA[wchpikus]]></name></author>
<updated>2017-04-17T19:12:34+01:00</updated>
<published>2017-04-17T19:12:34+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187324#p187324</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187324#p187324"/>
<title type="html"><![CDATA[Re: funkcja uint8_t test() a zwracana wartosc]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187324#p187324"><![CDATA[
dzieki, mialem blad w kodzie..<img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":)" title="Szczęśliwy" /><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=3859">wchpikus</a> — 17 kwi 2017, o 19:12</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[skalarro]]></name></author>
<updated>2017-04-16T20:48:29+01:00</updated>
<published>2017-04-16T20:48:29+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187282#p187282</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187282#p187282"/>
<title type="html"><![CDATA[Re: funkcja uint8_t test() a zwracana wartosc]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187282#p187282"><![CDATA[
cośgdzieś mieszasz. daj na sztywno na x=0, bez warunku. albo pokaż więcej kodu jeśli nie tajemnica<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=4850">skalarro</a> — 16 kwi 2017, o 20:48</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[wchpikus]]></name></author>
<updated>2017-04-16T20:45:41+01:00</updated>
<published>2017-04-16T20:45:41+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187281#p187281</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187281#p187281"/>
<title type="html"><![CDATA[Re: funkcja uint8_t test() a zwracana wartosc]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187281#p187281"><![CDATA[
Tak na sztywno..<br />If warunek then x=0.<br />X jest zwracane, powinno,a nie jest..<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=3859">wchpikus</a> — 16 kwi 2017, o 20:45</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[skalarro]]></name></author>
<updated>2017-04-16T20:44:08+01:00</updated>
<published>2017-04-16T20:44:08+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187280#p187280</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187280#p187280"/>
<title type="html"><![CDATA[Re: funkcja uint8_t test() a zwracana wartosc]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187280#p187280"><![CDATA[
a wartości dla x przypisujesz na sztywno np x=3, x=0 czy przy pomocy jakiegoś warunku, funkcji, działania lub czujnika?? może tam coś?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=4850">skalarro</a> — 16 kwi 2017, o 20:44</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[wchpikus]]></name></author>
<updated>2017-04-16T20:41:02+01:00</updated>
<published>2017-04-16T20:41:02+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187279#p187279</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187279#p187279"/>
<title type="html"><![CDATA[Re: funkcja uint8_t test() a zwracana wartosc]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187279#p187279"><![CDATA[
Na lcd i uart.<br />Cos tam to funkcja odpytujaca urzadzenie o stan, odpowiedzia sa stany od 0 do 5<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=3859">wchpikus</a> — 16 kwi 2017, o 20:41</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[skalarro]]></name></author>
<updated>2017-04-16T20:36:28+01:00</updated>
<published>2017-04-16T20:36:28+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187277#p187277</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187277#p187277"/>
<title type="html"><![CDATA[Re: funkcja uint8_t test() a zwracana wartosc]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187277#p187277"><![CDATA[
a jak sprawdzasz wartość zmiennej?? jakiś lcd?? terminal? I co to jest to cośtam??<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=4850">skalarro</a> — 16 kwi 2017, o 20:36</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[wchpikus]]></name></author>
<updated>2017-04-16T20:35:18+01:00</updated>
<published>2017-04-16T20:35:18+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187276#p187276</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187276#p187276"/>
<title type="html"><![CDATA[Re: funkcja uint8_t test() a zwracana wartosc]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187276#p187276"><![CDATA[
Wszystko jest.przy wartosciach &gt; 0 dziala<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=3859">wchpikus</a> — 16 kwi 2017, o 20:35</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[skalarro]]></name></author>
<updated>2017-04-16T20:22:22+01:00</updated>
<published>2017-04-16T20:22:22+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187275#p187275</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187275#p187275"/>
<title type="html"><![CDATA[Re: funkcja uint8_t test() a zwracana wartosc]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187275#p187275"><![CDATA[
To coś robisz nie tak, może gdzieś w innym miejscu programu mieszasz. <br />musi zwrócić 0!!! a zmienna musi przybrać wartość funkcji.<br /><br />masz w programie deklarację funkcji?? mam na myśli:<br />uint8_t test(void);<br /><br />może nie masz?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=4850">skalarro</a> — 16 kwi 2017, o 20:22</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[wchpikus]]></name></author>
<updated>2017-04-16T20:18:57+01:00</updated>
<published>2017-04-16T20:18:57+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187274#p187274</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187274#p187274"/>
<title type="html"><![CDATA[Re: funkcja uint8_t test() a zwracana wartosc]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187274#p187274"><![CDATA[
Ok, tylko bardziej chodzilo mi o to, czy x=0 to co zwroci funkcja?<br />Poniewaz mam zmienna=test(), gdzie test zwraca 0, i niestety zmienna nie jest 0..<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=3859">wchpikus</a> — 16 kwi 2017, o 20:18</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[skalarro]]></name></author>
<updated>2017-04-16T20:02:16+01:00</updated>
<published>2017-04-16T20:02:16+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187271#p187271</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187271#p187271"/>
<title type="html"><![CDATA[Re: funkcja uint8_t test() a zwracana wartosc]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187271#p187271"><![CDATA[
<div class="quotetitle">wchpikus napisał(a):</div><div class="quotecontent"><br />Co zwroci funkcja przy x=0?<br />Liczbe od 0-255?<br />Wydaje sie ze lisowa liczbe?<br /></div><br />Dlaczego tak myślisz?? nie może losowej. Losowa liczba będize tylko w wypadku jeżeli powołasz zmienną lokalną a jej nie nadasz wartości, więc ona przyjmie wartości jakie były po poprzedniej zmiennej w danej komórce pamięci. Jak przypiszesz jakąś liczbę to nie ma bata - nie może być ona losowa niezależnie zy to 2, 5 czy 0.<br /><br />nie pamiętam czy to robi różnicę ale spróbuj return x; a nie return(x);<br /><br />i spróbuj zamiast uint8_t x; zrobić uint8_t x=0;<br /><br /><strong><span style="color: #808000">------------------------ [ Dodano po: 6 minutach ]</span></strong><br /><br /><div class="quotetitle">wchpikus napisał(a):</div><div class="quotecontent"><br />Liczbe od -128 do 128? (Uint8).<br /></div><br /><br />Jeżeli masz na myśli uint8_t to nie masz -128 do 128, tylko 0-255;<br />chyba że chodzi Ci o int8_t to wtedy mamy do czynienia z liczbami ujemnymi ale w zakresie -128 do 127<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=4850">skalarro</a> — 16 kwi 2017, o 20:02</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[wchpikus]]></name></author>
<updated>2017-04-16T19:46:17+01:00</updated>
<published>2017-04-16T19:46:17+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187270#p187270</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187270#p187270"/>
<title type="html"><![CDATA[Re: funkcja uint8_t test() a zwracana wartosc]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187270#p187270"><![CDATA[
Blad sie wkradl..<br />Juz jest ok<br /><br />Teraz jasniej?<br />Co zwroci funkcja przy x=0?<br />Liczbe od -128 do 128? (Uint8).<br />Wydaje sie ze lisowa liczbe?<br /><br /><strong><span style="color: #808000">------------------------ [ Dodano po: 5 minutach ]</span></strong><br /><br /><div class="quotetitle">skalarro napisał(a):</div><div class="quotecontent"><br />jezeli costam przyjmie zero, to funkcja zwróci 0,czyli liczba też będzie =0<br /><br />Uint8_t x;x     ?? nie krzyczy kompilator?<br /></div><br />Wlasnie ze nie zwraca 0;) stad pytanie<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=3859">wchpikus</a> — 16 kwi 2017, o 19:46</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[skalarro]]></name></author>
<updated>2017-04-16T19:43:39+01:00</updated>
<published>2017-04-16T19:43:39+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187269#p187269</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187269#p187269"/>
<title type="html"><![CDATA[Re: funkcja uint8_t test() a zwracana wartosc]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187269#p187269"><![CDATA[
jezeli costam przyjmie zero, to funkcja zwróci 0,czyli liczba też będzie =0;<br /><br />p.s. co to jest:<br /><br />Uint8_t x;x     ?? nie krzyczy kompilator?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=4850">skalarro</a> — 16 kwi 2017, o 19:43</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[wchpikus]]></name></author>
<updated>2017-04-16T19:39:26+01:00</updated>
<published>2017-04-16T19:39:26+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187267#p187267</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187267#p187267"/>
<title type="html"><![CDATA[Re: funkcja uint8_t test() a zwracana wartosc]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187267#p187267"><![CDATA[
Ok zle napisalem.<br />Cos tam..= przypisuje wartosc od 0 do 5..<br />Czyli zakladamy ze costam przyjmie 0<br />Poprawilem listing<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=3859">wchpikus</a> — 16 kwi 2017, o 19:39</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[skalarro]]></name></author>
<updated>2017-04-16T19:29:20+01:00</updated>
<published>2017-04-16T19:29:20+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187266#p187266</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187266#p187266"/>
<title type="html"><![CDATA[Re: funkcja uint8_t test() a zwracana wartosc]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187266#p187266"><![CDATA[
Po każdym przejściu programu przez: Liczba = test(); zostanie wywołana funkcja i zawsze zwróci ona jakiś wynik. tylko jak nie inicjujesz zmiennej x to możesz otrzymać śmieci jeżeli nie przypiszesz do niej żadnej wartości w ciele funkcji. Ale zwróci coś zawsze. każdy wynik z twoich założeń, zero też albo śmieci ;]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=4850">skalarro</a> — 16 kwi 2017, o 19:29</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[StaryAnoda]]></name></author>
<updated>2017-04-16T19:21:13+01:00</updated>
<published>2017-04-16T19:21:13+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187265#p187265</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187265#p187265"/>
<title type="html"><![CDATA[Re: funkcja uint8_t test() a zwracana wartosc]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187265#p187265"><![CDATA[
Zmienne lokalne powinno sie inicjować<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=12916">StaryAnoda</a> — 16 kwi 2017, o 19:21</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[wchpikus]]></name></author>
<updated>2017-04-16T19:44:56+01:00</updated>
<published>2017-04-16T19:18:10+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187264#p187264</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187264#p187264"/>
<title type="html"><![CDATA[funkcja uint8_t test() a zwracana wartosc]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=18176&amp;p=187264#p187264"><![CDATA[
Hej<br />Glupie pytanie:)<br />Wywoluje funkcje<br /><br />Uint8_t liczba=10;<br />Liczba = test();<br /><br />[syntax=c]Uint8_t test(){<br />Uint8_t x;<br />X=cos tam // przypisuje do x wartosc od 0 do 5<br />Cos tam..<br />Return(x);<br />}[/syntax]<br /><br />x przyjmuje wartosc od 0 do 5..<br />Czy przy 0 liczba bedzie 0 czy funkcja nic nie zwroci?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=3859">wchpikus</a> — 16 kwi 2017, o 19:18</p><hr />
]]></content>
</entry>
</feed>