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

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2016-08-07T13:08:50+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=4&amp;t=15953&amp;mode</id>
<entry>
<author><name><![CDATA[Mysteziz]]></name></author>
<updated>2016-08-07T13:08:50+01:00</updated>
<published>2016-08-07T13:08:50+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15953&amp;p=165614#p165614</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15953&amp;p=165614#p165614"/>
<title type="html"><![CDATA[Re: Enkoder obrotowy LIB - prośba o pomoc]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15953&amp;p=165614#p165614"><![CDATA[
Kicajek, mkencoder.h mam w katalogu głownym tego programu więc powinno być ok. Hmm jakk tak dalej pójdzie to biblioteka będzie musiała poleżeć w kącie czekając na lepsze czasy aż sam będe na tyle umiał by doszukać się co jest nie tak. Myślałem jeszcze o wstawieniu całego kodu co przepisałem na forum ale to już by była masakra bo komu się będzie chciało to czytać  <img src="https://forum.atnel.pl/images/smilies/icon_lol.gif" alt=":lol:" title="Śmieje się" />  <img src="https://forum.atnel.pl/images/smilies/icon_lol.gif" alt=":lol:" title="Śmieje się" />  <img src="https://forum.atnel.pl/images/smilies/icon_lol.gif" alt=":lol:" title="Śmieje się" /><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=14012">Mysteziz</a> — 7 sie 2016, o 13:08</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[kicajek]]></name></author>
<updated>2016-08-06T19:20:36+01:00</updated>
<published>2016-08-06T19:20:36+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15953&amp;p=165579#p165579</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15953&amp;p=165579#p165579"/>
<title type="html"><![CDATA[Re: Enkoder obrotowy LIB - prośba o pomoc]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15953&amp;p=165579#p165579"><![CDATA[
Witam<br />A ten plik mkenkoder.h masz bezpośrednio w kodzie, czy w folderze  &quot;MK_ENCODER&quot; bo wtedy musiałbyś odwołać się do niego:<br />[syntax=c]#include &quot;MK_ENCODER/mk_encoder.h&quot;[/syntax]<br />...ale to takie gdybanie.<br /><div class="quotetitle">Mysteziz napisał(a):</div><div class="quotecontent"><br />hmm z poradnika przepisałem includy<br /></div><br />hmm; tyle ich było.... <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /> <br /><br />Pozdr.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=826">kicajek</a> — 6 sie 2016, o 19:20</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Mysteziz]]></name></author>
<updated>2016-08-06T19:00:56+01:00</updated>
<published>2016-08-06T19:00:56+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15953&amp;p=165576#p165576</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15953&amp;p=165576#p165576"/>
<title type="html"><![CDATA[Re: Enkoder obrotowy LIB - prośba o pomoc]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15953&amp;p=165576#p165576"><![CDATA[
hmm z poradnika przepisałem includy<br /><br />[syntax=c]#include &lt;avr/io.h&gt;<br />#include &lt;avr/interrupt.h&gt;<br />#include &lt;avr/pgmspace.h&gt;<br />#include &lt;util/delay.h&gt;<br />#include &lt;string.h&gt;<br /><br />#include &quot;LCD/lcd44780.h&quot;<br />#include &quot;mkencoder.h&quot;[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=14012">Mysteziz</a> — 6 sie 2016, o 19:00</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[kicajek]]></name></author>
<updated>2016-08-06T18:53:42+01:00</updated>
<published>2016-08-06T18:53:42+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15953&amp;p=165575#p165575</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15953&amp;p=165575#p165575"/>
<title type="html"><![CDATA[Re: Enkoder obrotowy LIB - prośba o pomoc]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15953&amp;p=165575#p165575"><![CDATA[
Witam<br />Tak po omacku, ale: w main.c includujesz wszystkie potrzebne pliki?<br /><br />Pozdr.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=826">kicajek</a> — 6 sie 2016, o 18:53</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Mysteziz]]></name></author>
<updated>2016-08-06T18:42:20+01:00</updated>
<published>2016-08-06T18:42:20+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15953&amp;p=165574#p165574</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15953&amp;p=165574#p165574"/>
<title type="html"><![CDATA[Re: Enkoder obrotowy LIB - prośba o pomoc]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15953&amp;p=165574#p165574"><![CDATA[
Bardzo Wam dziękuję, rzeczywiście warningi i błędy w kodzie znikneły natomiast dalej coś jest nie tak bo program się kompiluje niby ale  w konsoli mam taki zapis:<br /><br />19:33:08 **** Incremental Build of configuration Release for project MKENCODER_LIB ****<br />make all <br />Building target: MKENCODER_LIB.elf<br />Invoking: AVR C Linker<br />avr-gcc -Wl,-Map,MKENCODER_LIB.map -mmcu=atmega32 -o &quot;MKENCODER_LIB.elf&quot;  ./LCD/lcd44780.o  ./main.o ./mkencoder.o   <br />./main.o: In function `przycisk':<br />main.c:(.text.przycisk+0x4): undefined reference to `set_encoder'<br />./main.o: In function `main':<br />main.c:(.text.startup.main+0x2e): undefined reference to `register_enc_event_callback'<br />main.c:(.text.startup.main+0x3c): undefined reference to `ENCODER_EVENT'<br />collect2.exe: error: ld returned 1 exit status<br />make: *** [MKENCODER_LIB.elf] Błąd 1<br />  <br />19:33:13 Build Finished (took 4s.895ms)<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=14012">Mysteziz</a> — 6 sie 2016, o 18:42</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[HomoChemicus]]></name></author>
<updated>2016-08-06T11:41:04+01:00</updated>
<published>2016-08-06T11:41:04+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15953&amp;p=165559#p165559</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15953&amp;p=165559#p165559"/>
<title type="html"><![CDATA[Re: Enkoder obrotowy LIB - prośba o pomoc]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15953&amp;p=165559#p165559"><![CDATA[
Masz dwa razy &quot;const&quot;.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=10470">HomoChemicus</a> — 6 sie 2016, o 11:41</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[skalarro]]></name></author>
<updated>2016-08-06T09:51:20+01:00</updated>
<published>2016-08-06T09:51:20+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15953&amp;p=165554#p165554</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15953&amp;p=165554#p165554"/>
<title type="html"><![CDATA[Re: Enkoder obrotowy LIB - prośba o pomoc]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15953&amp;p=165554#p165554"><![CDATA[
brakuje ci przecinka w tablicy<br />[syntax=c]const uint8_t enc_tab&#91;7&#93;&#91;4&#93; const PROGMEM = {<br />        {0x0, 0x2, 0x4, 0x0}, {0x3, 0x0, 0x1, 0x10}&lt;-------TUTAJ<br />        {0x3, 0x2, 0x0, 0x0}, {0x3, 0x2, 0x1, 0x0},<br />        {0x6, 0x0, 0x4, 0x0}, {0x6, 0x5, 0x0, 0x20},<br />        {0x6, 0x5, 0x4, 0x0}<br />        };<br />#endif[/syntax]<br /><br />oraz[syntax=c]if( enc_event_calback ) enc_event_callback();[/syntax]<br /><br />zamień na:<br />[syntax=c]if( enc_event_callback ) enc_event_callback();[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=4850">skalarro</a> — 6 sie 2016, o 09:51</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Mysteziz]]></name></author>
<updated>2016-08-06T09:30:22+01:00</updated>
<published>2016-08-06T09:30:22+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15953&amp;p=165552#p165552</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15953&amp;p=165552#p165552"/>
<title type="html"><![CDATA[Enkoder obrotowy LIB - prośba o pomoc]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15953&amp;p=165552#p165552"><![CDATA[
Witajcie. Proszę o pomoc. Przepisywałem bibliotekę z poradników Mirka i niestety wyskakują mi jakieś błędy. Próbowałem sam sobie poradzić ale jeszcze za mało wiem więc proszę Forumowiczów o pomoc. Wstawię fragmenty kodu i błędy jakie wyświetla mi eclipse.<br /><br />Tablica kroków enkodera:<br />[syntax=c]const uint8_t enc_tab&#91;7&#93;&#91;4&#93; const PROGMEM = {<br />{0x0, 0x2, 0x4, 0x0}, {0x3, 0x0, 0x1, 0x10}<br />{0x3, 0x2, 0x0, 0x0}, {0x3, 0x2, 0x1, 0x0},<br />{0x6, 0x0, 0x4, 0x0}, {0x6, 0x5, 0x0, 0x20},<br />{0x6, 0x5, 0x4, 0x0}<br />};<br />#endif[/syntax]<br />a błąd w tablicy:<br />Multiple markers at this line<br />- Syntax error<br />- expected '=', ',', ';', 'asm' or '__attribute__' <br /> before 'const'<br /><br />******************************<br />funkcja encoder proc<br /><br />[syntax=c]void encoder_proc( void ) {<br />static uint8_t enc_stat;<br />register uint8_t pin = ENC_AB_PIN;<br />register uint8_t ABstate = ((pin&amp;ENC_B) ?2:0) | ((pin&amp;ENC_A)?1:0);<br />enc_stat = pgm_read_byte( &amp;enc_tab&#91;enc_stat &amp; 0x0f&#93;&#91;ABstate&#93; ); // a błąd tu__&gt;&gt;subscripted value is neither array nor pointer nor vector<br />ABstate = (enc_stat &amp; 0x30);<br />if (ABstate) {<br />enco_dir = ABstate;<br />if(ABstate == ENC_RIGHT) enco_cnt++;<br />else enco_cnt--;<br />enco_flag = 1;<br />}<br />}[/syntax]<br /><br />************************************<br /><br />coś zrobiłem nie tak? z callbackiem?<br /><br />[syntax=c]if( enco_flag ) {<br />if( enc_event_calback ) enc_event_callback();//Multiple markers at this line<br />//- Symbol 'enc_event_calback' could not be resolved<br />//- each undeclared identifier is reported only once for each function it <br />// appears in<br />//- 'enc_event_calback' undeclared (first use in this function)<br /><br /><br /><br />enco_flag = 0;<br /><br />}[/syntax]<br /><br />Przepraszam ze zamieszczam aż tyle tego ale naprawde już się pogubiłem. Bardzo proszę o pomoc albo o rady co ja mam z tym zrobić aby było ok.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=14012">Mysteziz</a> — 6 sie 2016, o 09:30</p><hr />
]]></content>
</entry>
</feed>