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

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

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=30&amp;t=19098&amp;mode</id>
<entry>
<author><name><![CDATA[kijas1]]></name></author>
<updated>2017-09-01T13:32:31+01:00</updated>
<published>2017-09-01T13:32:31+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=19098&amp;p=194339#p194339</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=19098&amp;p=194339#p194339"/>
<title type="html"><![CDATA[Re: Przeportowanie AVR C++ na AVR C]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=19098&amp;p=194339#p194339"><![CDATA[
No to już coś wiadomo. Jak wieczorem znajdę chwile to się przyjrzę kodowi w czym rzecz.<br /><br />PS. Sprawdziłem na symulatorze dla twoich ustawień i wygląda na to, że przerzuca stanami portów tak jak powinno. Coś musi być nie tak w połączeniach (może coś do tych portów jest jeszcze podłączone i zakłóca transmisję).<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=4627">kijas1</a> — 1 wrz 2017, o 13:32</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[LA72]]></name></author>
<updated>2017-09-01T13:17:41+01:00</updated>
<published>2017-09-01T13:17:41+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=19098&amp;p=194338#p194338</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=19098&amp;p=194338#p194338"/>
<title type="html"><![CDATA[Re: Przeportowanie AVR C++ na AVR C]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=19098&amp;p=194338#p194338"><![CDATA[
Problem pojawia się przy zmianie pinów PB4 i PB5 na inne.<br />Pomiędzy sobą mogą być zamieniane, ale na inne już nie.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=3028">LA72</a> — 1 wrz 2017, o 13:17</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[kijas1]]></name></author>
<updated>2017-09-01T10:59:48+01:00</updated>
<published>2017-09-01T10:59:48+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=19098&amp;p=194329#p194329</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=19098&amp;p=194329#p194329"/>
<title type="html"><![CDATA[Re: Przeportowanie AVR C++ na AVR C]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=19098&amp;p=194329#p194329"><![CDATA[
Proponuje zacząć zmiany od pojedynczych linii i obserwować co się dzieje. Może gdzieś w połączeniach coś się pomieszało.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=4627">kijas1</a> — 1 wrz 2017, o 10:59</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[LA72]]></name></author>
<updated>2017-08-31T21:20:21+01:00</updated>
<published>2017-08-31T21:20:21+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=19098&amp;p=194307#p194307</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=19098&amp;p=194307#p194307"/>
<title type="html"><![CDATA[Re: Przeportowanie AVR C++ na AVR C]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=19098&amp;p=194307#p194307"><![CDATA[
W menu.cpp zmieniłem na:<br />[syntax=cpp]void lcdInit(void)<br /> {<br />// lcd.lcd_init(&amp;PORTD, PD0, &amp;PORTD, PD1, &amp;PORTB, PB3, &amp;PORTB, PB4, &amp;PORTB, PB5);<br /> lcd.lcd_init(&amp;PORTD, PD3, &amp;PORTD, PD4, &amp;PORTD, PD2, &amp;PORTD, PD1, &amp;PORTD, PD0);[/syntax]<br />zgodnie z opisem w 5110.cpp:<br />[syntax=cpp]void LCD_5110::lcd_init(<br />volatile uint8_t  *port_SCE, uint8_t  dq_SCE,<br />volatile uint8_t  *port_RST, uint8_t  dq_RST,<br />volatile uint8_t  *port_DC, uint8_t  dq_DC,<br />volatile uint8_t  *port_DATA, uint8_t  dq_DATA,<br />volatile uint8_t  *port_CLK, uint8_t  dq_CLK<br />)[/syntax]<br />W main.cpp zmieniłem podciąganie dla przycisków:<br />[syntax=cpp]int main(void)<br />{<br />    PORTB |= (1&lt;&lt;PORTB3)|(1&lt;&lt;PORTB4)|(1&lt;&lt;PORTB5);//podciąganie rezystorów<br />PORTB |= (1&lt;&lt;PORTB1)|(1&lt;&lt;PORTB2);//dla przycisków[/syntax]<br />W header.h zmieniłem definicje dla przycisków:<br />[syntax=cpp]//buttons<br />#define BTN_LEFT_PRESSED!(PINB &amp; (1&lt;&lt;PINB5))<br />#define BTN_RIGHT_PRESSED!(PINB &amp; (1&lt;&lt;PINB2))<br />#define BTN_MIDDLE_PRESSED!(PINB &amp; (1&lt;&lt;PINB3))<br />#define BTN_DOWN_PRESSED!(PINB &amp; (1&lt;&lt;PINB1))<br />#define BTN_UP_PRESSED!(PINB &amp; (1&lt;&lt;PINB4))[/syntax]<br /><br />I niestety teraz mam ładny pusty ekran <img src="https://forum.atnel.pl/images/smilies/icon_e_sad.gif" alt=":(" title="Smutny" /><br />Co robię źle tym razem.<br />Łatwiej jest projektować układy niż pisać do nich soft.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=3028">LA72</a> — 31 sie 2017, o 21:20</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[kijas1]]></name></author>
<updated>2017-08-31T21:06:27+01:00</updated>
<published>2017-08-31T21:06:27+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=19098&amp;p=194306#p194306</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=19098&amp;p=194306#p194306"/>
<title type="html"><![CDATA[Re: Przeportowanie AVR C++ na AVR C]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=19098&amp;p=194306#p194306"><![CDATA[
W pliku menu.cpp masz funkcję  lcdInit, a tam wywołaną metode lcd.lcd_init. Wpisz w niej swoje porty. Kolejność możesz podejrzeć w pliku 5110.h gdzie jest metoda lcd_init.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=4627">kijas1</a> — 31 sie 2017, o 21:06</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[LA72]]></name></author>
<updated>2017-08-31T20:07:53+01:00</updated>
<published>2017-08-31T20:07:53+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=19098&amp;p=194304#p194304</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=19098&amp;p=194304#p194304"/>
<title type="html"><![CDATA[Re: Przeportowanie AVR C++ na AVR C]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=19098&amp;p=194304#p194304"><![CDATA[
Witam.<br />Teraz pytanie z &quot;innej mańki&quot;.<br />Jak zmienić rozłożenie pinów do wyświetlacza?<br />Dla wszystkich elementów znalazłem, ale z LCD mam problem.<br />Nowe połączenia chcę ustawić tak:<br />- PD0 = CLK<br />- PD1 = DIN<br />- PD2 = DC<br />- PD3 = CE<br />- PD4 = DRST<br />Domyślam się, że znajdują wiś w 5110.cpp.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=3028">LA72</a> — 31 sie 2017, o 20:07</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[kijas1]]></name></author>
<updated>2017-08-31T08:31:42+01:00</updated>
<published>2017-08-31T08:31:42+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=19098&amp;p=194272#p194272</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=19098&amp;p=194272#p194272"/>
<title type="html"><![CDATA[Re: Przeportowanie AVR C++ na AVR C]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=19098&amp;p=194272#p194272"><![CDATA[
Już pisałem byś sprawdził czy na pewno masz te wywołania, ale samo się wyjaśniło.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=4627">kijas1</a> — 31 sie 2017, o 08:31</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[LA72]]></name></author>
<updated>2017-08-31T07:32:44+01:00</updated>
<published>2017-08-31T07:32:44+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=19098&amp;p=194270#p194270</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=19098&amp;p=194270#p194270"/>
<title type="html"><![CDATA[Re: Przeportowanie AVR C++ na AVR C]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=19098&amp;p=194270#p194270"><![CDATA[
Niestety ta porada nie przyniosła poprawy.<br />Znak zapytania jest na końcu. Tak jak powinien być.<br />Coś czuję, że problem leży w pliku menu.cpp.<br /><br />Chociaż, z drugiej strony dane te są zapisane w main.cpp:<br />[syntax=cpp]{<br />case 0://charge<br />uint8_t cells, hrs;<br />switch(drawSelectionMenu(chemistryMenuName, chemistryMenuItems))<br />{<br />case 0://Li-Ion/SLA<br />maxC = drawNumericalMenu(&quot;max charging\ncurrent &#91;A&#93;&quot;, 1.00);<br />maxV = drawNumericalMenu(&quot;max battery\nvoltage &#91;V&#93;&quot;, 4.20);<br />constantCVCharge(maxC, maxV);<br />break;<br />case 1://NiCd/NiMH<br />maxC = drawNumericalMenu(&quot;charging\ncurrent &#91;A&#93;&quot;, 1.00);<br />cells = drawNumericalMenu(&quot;# of\ncells&quot;, 1.00);<br />hrs = drawNumericalMenu(&quot;charging\ntime &#91;Hrs&#93;&quot;, 7);<br />chargeNiMH(maxC, cells, hrs);<br />break;<br />case 2://constant voltage<br />maxV = drawNumericalMenu(&quot;output\nvoltage &#91;V&#93;&quot;, 5.00);<br />constantVoltage(maxV);<br />break;<br />case 3://constant current<br />maxC = drawNumericalMenu(&quot;output\ncurrent &#91;A&#93;&quot;, 1.00);<br />constantCurrent(maxC);<br />break;<br />case 4://return<br />break;<br />}<br />break;<br />case 1://discharge<br />disC = drawNumericalMenu(&quot;discharging\ncurrent &#91;A&#93;&quot;, 1.00);<br />minV = drawNumericalMenu(&quot;minimal\nvoltage &#91;A&#93;&quot;, 1.00);<br />discharge(disC, minV);<br />break;<br />case 2://power supply - constant current and voltage limited power supply (WARNING - long <br />maxV = drawNumericalMenu(&quot;output\nvoltage &#91;V&#93;&quot;, 5.00);<br />maxC = drawNumericalMenu(&quot;current\nlimit &#91;A&#93;&quot;, 1.00);<br />constantCV(maxV, maxC);<br />break;<br />case 3://about - just display a screen on the lcd<br />lcd.lcd_clear();<br />lcd.lcd_goto_xy_exact(0, 0);<br />lcd.lcd_str(&quot; AVR Charger   by M. Danek  V1.10  (c)2016   madanek\n   post.cz&quot;);<br />while (!BTN_MIDDLE_PRESSED);<br />while (BTN_MIDDLE_PRESSED);<br />break;<br />case 4://restart (set up a watchdog)<br />wdt_enable(WDTO_15MS);<br />while (1);<br />break;<br />}[/syntax]<br /><br />P.S.1<br />Uff. Jednak zadziałało.<br />Przez &quot;przypadek&quot; usunęło mi wpis &quot;-Wl,-u,vfprintf&quot;.<br />Dzięki.<br /><br />P.S.2<br />Program jak na razie działa.<br />Są jednak żółte ostrzeżenia w Eclipse.<br /><a href="https://obrazkiforum.atnel.pl/3028/6a16347d31e7619ad7d7fcda65a0b887.jpg"  class="postlink"><img src="https://obrazkiforum.atnel.pl/thumb/3028/6a16347d31e7619ad7d7fcda65a0b887.jpg" alt="Obrazek" /></a><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=3028">LA72</a> — 31 sie 2017, o 07:32</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[kijas1]]></name></author>
<updated>2017-08-30T22:12:45+01:00</updated>
<published>2017-08-30T22:12:45+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=19098&amp;p=194255#p194255</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=19098&amp;p=194255#p194255"/>
<title type="html"><![CDATA[Re: Przeportowanie AVR C++ na AVR C]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=19098&amp;p=194255#p194255"><![CDATA[
Proponuję sprawdzić sobie to: <!-- m --><a class="postlink" href="http://mirekk36.blogspot.com/2013/04/eclipse-nie-dziaa-mi-printf-dla-float.html" >http://mirekk36.blogspot.com/2013/04/ec ... float.html</a><!-- m --> . Jeśli nie pomorze będziemy dalej kombinować.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=4627">kijas1</a> — 30 sie 2017, o 22:12</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[LA72]]></name></author>
<updated>2017-08-30T17:51:57+01:00</updated>
<published>2017-08-30T17:51:57+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=19098&amp;p=194244#p194244</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=19098&amp;p=194244#p194244"/>
<title type="html"><![CDATA[Re: Przeportowanie AVR C++ na AVR C]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=19098&amp;p=194244#p194244"><![CDATA[
Ruszyło.<br />Ten sam wpis musiałem dodać do:<br />- adc.h<br />- NiMh.h<br />oraz wspomnianego 5110.h.<br />Dzięki<br /><br />P.S.<br />Niestety zbyt pięknie by było prawdziwie.<br />Przy oryginalnym pliku hex widoczne są domyślne wartości, które można zmieniać.<br /><a href="https://obrazkiforum.atnel.pl/3028/2f4a3c5c5abb3c064bc764f73610f56a.jpg"  class="postlink"><img src="https://obrazkiforum.atnel.pl/thumb/3028/2f4a3c5c5abb3c064bc764f73610f56a.jpg" alt="Obrazek" /></a><br /><br />Przy pliku nowo kompilowanym tych wartości nie ma.<br /><a href="https://obrazkiforum.atnel.pl/3028/1737433a647ece4f704eb73fd48c6696.jpg"  class="postlink"><img src="https://obrazkiforum.atnel.pl/thumb/3028/1737433a647ece4f704eb73fd48c6696.jpg" alt="Obrazek" /></a><br /><br />O dziwo wielkość plików wynikowych też się różni.<br />Oryginał ma 47kb, za nowy tylko 36kb.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=3028">LA72</a> — 30 sie 2017, o 17:51</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[kijas1]]></name></author>
<updated>2017-08-30T17:37:05+01:00</updated>
<published>2017-08-30T17:37:05+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=19098&amp;p=194243#p194243</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=19098&amp;p=194243#p194243"/>
<title type="html"><![CDATA[Re: Przeportowanie AVR C++ na AVR C]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=19098&amp;p=194243#p194243"><![CDATA[
Na początek proponuję dołączyć do pliku  5110.h &lt;stdint.h&gt;  i spróbować skompilować. Projekt jest gotowy pod AS6, ale jeśli kolega woli Eclipse, którego nie używam, to będziemy razem walczyć.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=4627">kijas1</a> — 30 sie 2017, o 17:37</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[LA72]]></name></author>
<updated>2017-08-30T17:05:16+01:00</updated>
<published>2017-08-30T17:05:16+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=19098&amp;p=194241#p194241</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=19098&amp;p=194241#p194241"/>
<title type="html"><![CDATA[Re: Przeportowanie AVR C++ na AVR C]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=19098&amp;p=194241#p194241"><![CDATA[
Chodzi o to, że Eclipse ma problem z kilkoma liniami.<br />Konsola:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">18:00:46 **** Build of configuration Release for project AVR450_v14_charger_cpp ****<br />make all <br />'Building file: ../display/5110.cpp'<br />'Invoking: AVR C++ Compiler'<br />avr-g++ -Wall -Os -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -funsigned-char -funsigned-bitfields -fno-exceptions -mmcu=atmega328 -DF_CPU=8000000UL -MMD -MP -MF&quot;display/5110.d&quot; -MT&quot;display/5110.o&quot; -c -o &quot;display/5110.o&quot; &quot;../display/5110.cpp&quot;<br />In file included from ../display/5110.cpp:8:0:<br />../display/../../AVR450_v14_charger_cpp/display/5110.h:22:2: error: 'uint8_t' does not name a type<br />  uint8_t  m_dq_SCE, m_dq_RST, m_dq_DC, m_dq_DATA, m_dq_CLK;<br />  ^<br />../display/../../AVR450_v14_charger_cpp/display/5110.h:23:11: error: 'uint8_t' does not name a type<br />  volatile uint8_t  *m_port_SCE, *m_port_RST, *m_port_DC, *m_port_DATA, *m_port_CLK;<br />           ^<br />../display/../../AVR450_v14_charger_cpp/display/5110.h:27:11: error: 'uint8_t' does not name a type<br />  volatile uint8_t* Port2DDR(volatile uint8_t *port) {<br />           ^<br />../display/../../AVR450_v14_charger_cpp/display/5110.h:35:12: error: 'uint8_t' does not name a type<br />   volatile uint8_t  *port_SCE, uint8_t  dq_SCE,<br />            ^<br />../display/../../AVR450_v14_charger_cpp/display/5110.h:35:22: error: ISO C++ forbids declaration of 'port_SCE' with no type &#91;-fpermissive&#93;<br />   volatile uint8_t  *port_SCE, uint8_t  dq_SCE,<br />                      ^<br />../display/../../AVR450_v14_charger_cpp/display/5110.h:35:32: error: 'uint8_t' has not been declared<br />   volatile uint8_t  *port_SCE, uint8_t  dq_SCE,<br />                                ^<br />../display/../../AVR450_v14_charger_cpp/display/5110.h:36:12: error: 'uint8_t' does not name a type<br />   volatile uint8_t  *port_RST, uint8_t  dq_RST,<br />            ^<br />../display/../../AVR450_v14_charger_cpp/display/5110.h:36:22: error: ISO C++ forbids declaration of 'port_RST' with no type &#91;-fpermissive&#93;<br />   volatile uint8_t  *port_RST, uint8_t  dq_RST,<br />                      ^<br />../display/../../AVR450_v14_charger_cpp/display/5110.h:36:32: error: 'uint8_t' has not been declared<br />   volatile uint8_t  *port_RST, uint8_t  dq_RST,<br />                                ^<br />../display/../../AVR450_v14_charger_cpp/display/5110.h:37:12: error: 'uint8_t' does not name a type<br />   volatile uint8_t  *port_DC, uint8_t  dq_DC,<br />            ^<br />../display/../../AVR450_v14_charger_cpp/display/5110.h:37:22: error: ISO C++ forbids declaration of 'port_DC' with no type &#91;-fpermissive&#93;<br />   volatile uint8_t  *port_DC, uint8_t  dq_DC,<br />                      ^<br />../display/../../AVR450_v14_charger_cpp/display/5110.h:37:31: error: 'uint8_t' has not been declared<br />   volatile uint8_t  *port_DC, uint8_t  dq_DC,<br />                               ^<br />../display/../../AVR450_v14_charger_cpp/display/5110.h:38:12: error: 'uint8_t' does not name a type<br />   volatile uint8_t  *port_DATA, uint8_t  dq_DATA,<br />            ^<br />../display/../../AVR450_v14_charger_cpp/display/5110.h:38:22: error: ISO C++ forbids declaration of 'port_DATA' with no type &#91;-fpermissive&#93;<br />   volatile uint8_t  *port_DATA, uint8_t  dq_DATA,<br />                      ^<br />../display/../../AVR450_v14_charger_cpp/display/5110.h:38:33: error: 'uint8_t' has not been declared<br />   volatile uint8_t  *port_DATA, uint8_t  dq_DATA,<br />                                 ^<br />../display/../../AVR450_v14_charger_cpp/display/5110.h:39:12: error: 'uint8_t' does not name a type<br />   volatile uint8_t  *port_CLK, uint8_t  dq_CLK<br />            ^<br />../display/../../AVR450_v14_charger_cpp/display/5110.h:39:22: error: ISO C++ forbids declaration of 'port_CLK' with no type &#91;-fpermissive&#93;<br />   volatile uint8_t  *port_CLK, uint8_t  dq_CLK<br />                      ^<br />../display/../../AVR450_v14_charger_cpp/display/5110.h:39:32: error: 'uint8_t' has not been declared<br />   volatile uint8_t  *port_CLK, uint8_t  dq_CLK<br />                                ^<br />../display/5110.cpp:129:6: error: prototype for 'void LCD_5110::lcd_init(volatile uint8_t*, uint8_t, volatile uint8_t*, uint8_t, volatile uint8_t*, uint8_t, volatile uint8_t*, uint8_t, volatile uint8_t*, uint8_t)' does not match any in class 'LCD_5110'<br /> void LCD_5110::lcd_init(<br />      ^<br />In file included from ../display/5110.cpp:8:0:<br />../display/../../AVR450_v14_charger_cpp/display/5110.h:34:7: error: candidate is: void LCD_5110::lcd_init(volatile int*, int, volatile int*, int, volatile int*, int, volatile int*, int, volatile int*, int)<br />  void lcd_init(<br />       ^<br />../display/5110.cpp: In member function 'void LCD_5110::lcd_clear_area(unsigned char, unsigned char, unsigned char)':<br />../display/5110.cpp:211:37: warning: comparison between signed and unsigned integer expressions &#91;-Wsign-compare&#93;<br />     for(unsigned int i = start; i &lt; end; i++) lcd_send(0, LCD_DATA);<br />                                     ^<br />../display/5110.cpp: In member function 'void LCD_5110::lcd_send(unsigned char, LCD_5110::LcdCmdData)':<br />../display/5110.cpp:281:15: error: 'm_port_DATA' was not declared in this scope<br />  Set(Port2DDR(m_port_DATA), m_dq_DATA, 1);<br />               ^<br />../display/5110.cpp:281:26: error: 'Port2DDR' was not declared in this scope<br />  Set(Port2DDR(m_port_DATA), m_dq_DATA, 1);<br />                          ^<br />../display/5110.cpp:281:29: error: 'm_dq_DATA' was not declared in this scope<br />  Set(Port2DDR(m_port_DATA), m_dq_DATA, 1);<br />                             ^<br />../display/5110.cpp:282:15: error: 'm_port_DC' was not declared in this scope<br />  Set(Port2DDR(m_port_DC), m_dq_DC, 1);<br />               ^<br />../display/5110.cpp:282:27: error: 'm_dq_DC' was not declared in this scope<br />  Set(Port2DDR(m_port_DC), m_dq_DC, 1);<br />                           ^<br />../display/5110.cpp:285:9: error: 'm_port_SCE' was not declared in this scope<br />     Set(m_port_SCE, m_dq_SCE, 0);//LCD_PORT &amp;= ~LCD_SCE_PIN;<br />         ^<br />../display/5110.cpp:285:21: error: 'm_dq_SCE' was not declared in this scope<br />     Set(m_port_SCE, m_dq_SCE, 0);//LCD_PORT &amp;= ~LCD_SCE_PIN;<br />                     ^<br />../display/5110.cpp:306:7: error: 'm_port_CLK' was not declared in this scope<br />   Set(m_port_CLK, m_dq_CLK, 1);//LCD_PORT |= LCD_CLK_PIN;<br />       ^<br />../display/5110.cpp:306:19: error: 'm_dq_CLK' was not declared in this scope<br />   Set(m_port_CLK, m_dq_CLK, 1);//LCD_PORT |= LCD_CLK_PIN;<br />                   ^<br />make: *** &#91;display/5110.o&#93; Błąd 1<br /><br />18:00:48 Build Finished (took 2s.677ms)<br /></div><br />oraz w liniach 5110.cpp:<br />[syntax=cpp]void LCD_5110::lcd_init(<br />volatile uint8_t  *port_SCE, uint8_t  dq_SCE,<br />volatile uint8_t  *port_RST, uint8_t  dq_RST,<br />volatile uint8_t  *port_DC, uint8_t  dq_DC,<br />volatile uint8_t  *port_DATA, uint8_t  dq_DATA,<br />volatile uint8_t  *port_CLK, uint8_t  dq_CLK<br />)[/syntax]<br />[syntax=cpp]Set(Port2DDR(m_port_DATA), m_dq_DATA, 1);<br />Set(Port2DDR(m_port_DC), m_dq_DC, 1);<br /><br />    // Enable display controller (active low)<br />    Set(m_port_SCE, m_dq_SCE, 0);//LCD_PORT &amp;= ~LCD_SCE_PIN;[/syntax]<br />i w 5110.h<br /><a href="https://obrazkiforum.atnel.pl/3028/7af54f64d111f3328a87a2de0cf13408.jpg"  class="postlink"><img src="https://obrazkiforum.atnel.pl/thumb/3028/7af54f64d111f3328a87a2de0cf13408.jpg" alt="Obrazek" /></a><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=3028">LA72</a> — 30 sie 2017, o 17:05</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[kijas1]]></name></author>
<updated>2017-08-30T16:45:56+01:00</updated>
<published>2017-08-30T16:45:56+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=19098&amp;p=194240#p194240</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=19098&amp;p=194240#p194240"/>
<title type="html"><![CDATA[Re: Przeportowanie AVR C++ na AVR C]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=19098&amp;p=194240#p194240"><![CDATA[
Witam. A dlaczego kolega chce go przeportować do C? Przejrzałem tak na szybko i wydaje mi się, że prędzej da się wytłumaczyć koledze czym jest klasa LCD, niż prowadzić za rękę w bezsensownym pisaniu tego w czystym C. Jeśli kolega ma jednak jakieś argumenty za tym żeby było C, to chętnie je wysłucham i  przedyskutuje, bo na razie to wiemy tylko, że ma być C a czemu i po co to tajemnica.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=4627">kijas1</a> — 30 sie 2017, o 16:45</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[LA72]]></name></author>
<updated>2017-08-30T12:08:04+01:00</updated>
<published>2017-08-30T12:08:04+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=19098&amp;p=194223#p194223</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=19098&amp;p=194223#p194223"/>
<title type="html"><![CDATA[Przeportowanie AVR C++ na AVR C]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=19098&amp;p=194223#p194223"><![CDATA[
Witam.<br />Znalazłem w sieci ciekawy projekt ładowarki z LCD Nokii 5510.<br /><a href="http://community.atmel.com/projects/avr-universal-charger"  class="postlink">http://community.atmel.com/projects/avr-universal-charger</a><br />Niestety kod źródłowy jest napisany w C++.<br />Proszę o pomoc w przeportowaniu kodu na C.<br /><br />Za pomoc z góry dziękuje.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=3028">LA72</a> — 30 sie 2017, o 12:08</p><hr />
]]></content>
</entry>
</feed>