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

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2015-02-03T09:45:44+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=8&amp;t=10281&amp;mode</id>
<entry>
<author><name><![CDATA[mily20001]]></name></author>
<updated>2015-02-03T09:45:44+01:00</updated>
<published>2015-02-03T09:45:44+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=117017#p117017</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=117017#p117017"/>
<title type="html"><![CDATA[Re: Karta SD i LCD od nokii 3310 oraz jedna atmega]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=117017#p117017"><![CDATA[
Udało mi się odpalić zapis na karcie sd używając biblioteki fatfs. Jest z tylko jeden problem, gdyż bo ponieważ działa to tylko raz. Jeśli odłączę cały układ od zasilania i podłączę z powrotem to ładnie się zapisuje. Ale jeśli po skończonym zapisie zrestartuję atmegę resetem, to fatfs twierdzi że zapisał, mimo że nic się nie zapisuje, ponadto karta cały czas ciągnie prąd (ok 25mA), mimo że program na atmedze już dawno skończył zapis. Po poprawnym zapisywaniu (czyli tym tuż po włączeniu zasilania całego układu) karta po ok 0,5s przestaje pobierać tak duży prąd. Co robię nie tak? Myślałem żeby podłączyć zasilanie karty przez tranzystor do atmegi, ale nie wydaje mi się żeby to było najlepsze rozwiązanie.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=7296">mily20001</a> — 3 lut 2015, o 09:45</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[WoodPaker]]></name></author>
<updated>2015-01-30T23:04:14+01:00</updated>
<published>2015-01-30T23:04:14+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116611#p116611</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116611#p116611"/>
<title type="html"><![CDATA[Re: Karta SD i LCD od nokii 3310 oraz jedna atmega]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116611#p116611"><![CDATA[
A widzisz. U mnie <strong>Suniowe </strong> biblioteki nie chcą hulać <img src="https://forum.atnel.pl/images/smilies/icon_e_sad.gif" alt=":(" title="Smutny" /><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1425">WoodPaker</a> — 30 sty 2015, o 23:04</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mily20001]]></name></author>
<updated>2015-01-30T21:12:41+01:00</updated>
<published>2015-01-30T21:12:41+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116602#p116602</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116602#p116602"/>
<title type="html"><![CDATA[Re: Karta SD i LCD od nokii 3310 oraz jedna atmega]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116602#p116602"><![CDATA[
Jesteście wielcy ^^ Za trzecim podejściem wstał na sprzętowym spi i bibliotece Suna. Potem dzięki postowi pod wątkiem dotyczącym tej biblioteki ktoś wrzucił funkcję która umożliwiała odpalenie tego na programowym spi. I działa <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":)" title="Szczęśliwy" /> Jeszcze raz wielkie dzięki. I pewnie niedługo wrócę, jak się wezmę za obsługę karty sd <img src="https://forum.atnel.pl/images/smilies/icon_e_biggrin.gif" alt=":D" title="Bardzo szczęśliwy" /><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=7296">mily20001</a> — 30 sty 2015, o 21:12</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[WoodPaker]]></name></author>
<updated>2015-01-30T12:51:41+01:00</updated>
<published>2015-01-30T12:51:41+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116571#p116571</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116571#p116571"/>
<title type="html"><![CDATA[Re: Karta SD i LCD od nokii 3310 oraz jedna atmega]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116571#p116571"><![CDATA[
Jeden ze sposobów (musisz sobie to przetłumaczyć na język swojej biblioteki zanim będziesz miał bibliotekę Sun'a)<br />[syntax=c]lcd_send( 0x21, LCD_CMD ); /* LCD Extended Commands. */<br />        lcd_send( 0x05, LCD_CMD ); /* komenda innego sterownika*/<br />        lcd_send( 0x06, LCD_CMD ); /* Set Temp coefficent. */<br />        lcd_send( 0xa5, LCD_CMD ); /* Set LCD Vop (Contrast).*/<br />        lcd_send( 0x14, LCD_CMD ); /* LCD bias mode 1:48. */<br />        lcd_send( 0x20, LCD_CMD ); /* LCD Standard Commands,Horizontal addressing mode */<br />        lcd_send( 0x0C, LCD_CMD ); /* LCD in normal mode. */[/syntax]<br /><br />Ale Sun u siebie jeszcze inaczej inicjalizuje.<br /><br />Tu masz też coś<br /><!-- m --><a class="postlink" href="http://hobby.abxyz.bplaced.net/index.php?pid=3&amp;aid=10" >http://hobby.abxyz.bplaced.net/index.php?pid=3&amp;aid=10</a><!-- m --><br />i tu<br /><!-- m --><a class="postlink" href="http://www.dharmanitech.com/2008/09/nokia-3310-lcd-interfacing-with-atmega8.html" >http://www.dharmanitech.com/2008/09/nok ... mega8.html</a><!-- m --><br /><!-- m --><a class="postlink" href="http://tnij.at/NOKIA3310" >http://tnij.at/NOKIA3310</a><!-- m --><br /><!-- m --><a class="postlink" href="http://www.elecfreaks.com/1319.html" >http://www.elecfreaks.com/1319.html</a><!-- m --><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1425">WoodPaker</a> — 30 sty 2015, o 12:51</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[kurnachatka]]></name></author>
<updated>2015-01-30T13:01:36+01:00</updated>
<published>2015-01-30T12:43:18+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116569#p116569</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116569#p116569"/>
<title type="html"><![CDATA[Re: Karta SD i LCD od nokii 3310 oraz jedna atmega]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116569#p116569"><![CDATA[
<div class="quotetitle">mily20001 napisał(a):</div><div class="quotecontent"><br />Wiadomo jak długo będzie niedomagać? A upewniłem się ze mówimy o module, bo w poprzednim poście pisałeś o komunikacji między lcd a nokią <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":)" title="Szczęśliwy" /><br /></div><br /><br />Na chwilę obecną możesz zajrzeć do tematu SunRiver-a w temacie jego biblioteki do tego wyświetlacza. <a href="http://forum.atnel.pl/topic2115.html"  class="postlink">http://forum.atnel.pl/topic2115.html</a> Wieczorem mogę ci podesłać tą bibliotekę jeśli do tego czasu nie dasz rady jej pobrać.<br /><br />OK. znalazłem.<br />LCD_3310_SunRiver.zip<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=930">kurnachatka</a> — 30 sty 2015, o 12:43</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[WoodPaker]]></name></author>
<updated>2015-01-30T12:28:10+01:00</updated>
<published>2015-01-30T12:28:10+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116566#p116566</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116566#p116566"/>
<title type="html"><![CDATA[Re: Karta SD i LCD od nokii 3310 oraz jedna atmega]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116566#p116566"><![CDATA[
Miałem na myśli procesor.. Wybacz to przez egzaminy <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":)" title="Szczęśliwy" /><br />Właśnie sie dowiedziałem, że foton się rozpada <img src="https://forum.atnel.pl/images/smilies/icon_e_geek.gif" alt=":geek:" title="Świr" /><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1425">WoodPaker</a> — 30 sty 2015, o 12:28</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mily20001]]></name></author>
<updated>2015-01-30T12:25:36+01:00</updated>
<published>2015-01-30T12:25:36+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116565#p116565</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116565#p116565"/>
<title type="html"><![CDATA[Re: Karta SD i LCD od nokii 3310 oraz jedna atmega]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116565#p116565"><![CDATA[
Wiadomo jak długo będzie niedomagać? A upewniłem się ze mówimy o module, bo w poprzednim poście pisałeś o komunikacji między lcd a nokią <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=7296">mily20001</a> — 30 sty 2015, o 12:25</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[WoodPaker]]></name></author>
<updated>2015-01-30T12:22:40+01:00</updated>
<published>2015-01-30T12:22:40+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116564#p116564</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116564#p116564"/>
<title type="html"><![CDATA[Re: Karta SD i LCD od nokii 3310 oraz jedna atmega]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116564#p116564"><![CDATA[
Wiem, że masz tylko moduł. Przecież o tym piszemy od początku wątku. Tylko tak jak mówię, możesz mieć moduł, który wymaga innej inicjalizacji niż jest w programie. Inny sposób inicjalizacji przedstawił w swojej obsłudze <strong>SunRiver</strong> ale chwilowo jego strona niedomaga <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=1425">WoodPaker</a> — 30 sty 2015, o 12:22</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mily20001]]></name></author>
<updated>2015-01-30T12:15:48+01:00</updated>
<published>2015-01-30T12:15:48+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116562#p116562</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116562#p116562"/>
<title type="html"><![CDATA[Re: Karta SD i LCD od nokii 3310 oraz jedna atmega]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116562#p116562"><![CDATA[
Nie mam, tak na szybko myśląc to mogę zatrudnić do tego drugą atmegę lub kartę dźwękową w komputerze. Przy czym nie mam całej nokii a jedynie ten moduł z wyświetlaczem.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=7296">mily20001</a> — 30 sty 2015, o 12:15</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[WoodPaker]]></name></author>
<updated>2015-01-30T10:56:32+01:00</updated>
<published>2015-01-30T10:56:32+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116550#p116550</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116550#p116550"/>
<title type="html"><![CDATA[Re: Karta SD i LCD od nokii 3310 oraz jedna atmega]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116550#p116550"><![CDATA[
Masz analizator stanów logicznych żeby zobaczyć czy LCD rozmawia z NOKIĄ?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1425">WoodPaker</a> — 30 sty 2015, o 10:56</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mily20001]]></name></author>
<updated>2015-01-30T09:46:35+01:00</updated>
<published>2015-01-30T09:46:35+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116537#p116537</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116537#p116537"/>
<title type="html"><![CDATA[Re: Karta SD i LCD od nokii 3310 oraz jedna atmega]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116537#p116537"><![CDATA[
Ja używam M8, wieczorem spróbuję M328 ale może po prostu trafiłem na jakiś wadliwy egzemplarz tego lcd. Da się to jakoś sprawdzić?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=7296">mily20001</a> — 30 sty 2015, o 09:46</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[WoodPaker]]></name></author>
<updated>2015-01-30T09:42:23+01:00</updated>
<published>2015-01-30T09:42:23+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116534#p116534</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116534#p116534"/>
<title type="html"><![CDATA[Re: Karta SD i LCD od nokii 3310 oraz jedna atmega]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116534#p116534"><![CDATA[
Testowałem na M8, M16, M32, M328 na pinach B oraz C. Działało bez zarzutu<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1425">WoodPaker</a> — 30 sty 2015, o 09:42</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mily20001]]></name></author>
<updated>2015-01-30T08:52:27+01:00</updated>
<published>2015-01-30T08:52:27+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116531#p116531</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116531#p116531"/>
<title type="html"><![CDATA[Re: Karta SD i LCD od nokii 3310 oraz jedna atmega]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116531#p116531"><![CDATA[
Której atmegi używasz i których pinów?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=7296">mily20001</a> — 30 sty 2015, o 08:52</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[WoodPaker]]></name></author>
<updated>2015-01-30T07:24:23+01:00</updated>
<published>2015-01-30T07:24:23+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116526#p116526</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116526#p116526"/>
<title type="html"><![CDATA[Re: Karta SD i LCD od nokii 3310 oraz jedna atmega]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116526#p116526"><![CDATA[
Może masz coś źle wyprowadzone? Nie wiem. Ta sama biblioteka działa u mnie bez problemu na każdej z ustawionych przeze mnie częstotliwości taktowania. Włącznie z 24MHz<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1425">WoodPaker</a> — 30 sty 2015, o 07:24</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mily20001]]></name></author>
<updated>2015-01-30T00:29:52+01:00</updated>
<published>2015-01-30T00:29:52+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116517#p116517</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116517#p116517"/>
<title type="html"><![CDATA[Re: Karta SD i LCD od nokii 3310 oraz jedna atmega]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116517#p116517"><![CDATA[
W Makefile jest ustawiona na 1MHz. Sprawdzałem empirycznie i 1000 razy wywołany delay_ms(1) trwa sekundę.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=7296">mily20001</a> — 30 sty 2015, o 00:29</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[WoodPaker]]></name></author>
<updated>2015-01-30T00:22:32+01:00</updated>
<published>2015-01-30T00:22:32+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116516#p116516</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116516#p116516"/>
<title type="html"><![CDATA[Re: Karta SD i LCD od nokii 3310 oraz jedna atmega]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116516#p116516"><![CDATA[
Właśnie ten kod mówię, że trzeba poprawić. U mnie działa bez problemu bez żadnych zmian. Może problem z taktowaniem? Masz dobrze ustawiona zmienną F_CPU?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1425">WoodPaker</a> — 30 sty 2015, o 00:22</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mily20001]]></name></author>
<updated>2015-01-30T00:19:54+01:00</updated>
<published>2015-01-30T00:19:54+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116515#p116515</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116515#p116515"/>
<title type="html"><![CDATA[Re: Karta SD i LCD od nokii 3310 oraz jedna atmega]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116515#p116515"><![CDATA[
Kolorowanie poprawione. Dokładnie ten kod inicjalizacji miałem ale nie za bardzo chciał działać. Lcd mam dokładnie ten który jest w linku, a przynajmniej wygląda tak samo. Sprzedawca linkuje tego dataszita: <a href="http://www.bro.net.pl/Obrazki/nokia5110.pdf"  class="postlink">http://www.bro.net.pl/Obrazki/nokia5110.pdf</a>.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=7296">mily20001</a> — 30 sty 2015, o 00:19</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[WoodPaker]]></name></author>
<updated>2015-01-29T23:41:17+01:00</updated>
<published>2015-01-29T23:41:17+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116507#p116507</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116507#p116507"/>
<title type="html"><![CDATA[Re: Karta SD i LCD od nokii 3310 oraz jedna atmega]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116507#p116507"><![CDATA[
OK. Pierwsza rzecz. Zmień ostawienia wyświetlania kodu na SYNTAX bo zaraz Ci <span style="color: #FF0080"><strong>Różowy</strong></span> skórę przetrzepie, a co do biblioteki widzę, że używasz tej samej co ja.<br />A może po prostu masz inny kod inicjalizacji? Taki jak Sun w swojej bibliotece.<br /><br /><strong><span style="color: #808000">------------------------ [ Dodano bo: tak nakazywało sumienie ]</span></strong><br /><br />Ten kod jest dopasowany do wyświetlacza takiego jak ten <!-- m --><a class="postlink" href="http://www.ebay.com/itm/84x48-Nokia-LCD-Module-Blue-Backlight-Adapter-PCB-Nokia-5110-LCD-For-Arduino-/400560839534?pt=LH_DefaultDomain_0&amp;hash=item5d43495b6e" >http://www.ebay.com/itm/84x48-Nokia-LCD ... 5d43495b6e</a><!-- m --> to jest Nokia 5510/3310. Obsługa jest dokładnie taka sama dla obydwóch ale inaczej przebiega inicjalizacja czyli ten fragment kodu.<br />[syntax=c]void LCD_init(void)                 //LCD initialization<br />  {<br />    DDRC|=0X1F;   <br /><br />     LCD_RST_clr;<br />    delay_1us();<br />     LCD_RST_set;<br />   <br />    LCD_CE_clr;<br /><br />    delay_1us();<br />     LCD_CE_set;<br /> <br />    delay_1us();<br /><br />    LCD_write_byte(0x21, 0);   // set LCD mode<br />    LCD_write_byte(0xc8, 0);   // set bias voltage<br />    LCD_write_byte(0x06, 0);   // temperature correction<br />    LCD_write_byte(0x13, 0);   // 1:48<br />    LCD_write_byte(0x20, 0);   // use bias command<br />    LCD_clear();              // clear the LCD<br />    LCD_write_byte(0x0c, 0);   // set LCD mode,display normally<br />       <br />    LCD_CE_clr;   <br />  }[/syntax]<br />Przeczytaj w swoim dataszicie jak jest dla Twojego wyświetlacza<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1425">WoodPaker</a> — 29 sty 2015, o 23:41</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mily20001]]></name></author>
<updated>2015-01-30T00:09:17+01:00</updated>
<published>2015-01-29T23:29:39+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116504#p116504</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116504#p116504"/>
<title type="html"><![CDATA[Re: Karta SD i LCD od nokii 3310 oraz jedna atmega]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=116504#p116504"><![CDATA[
Podłączyłem lcd w ten sposób:<br />SCE→PC 1<br />RST→PC 0<br />D/C→PC 2<br />DN→ PC 3<br />SCLK→PC 4<br />Niestety na wyświetlaczu nic się nie pojawia. Nie za bardzo wiem jak to debugować, sprawdziłem połączenia i wszystkie są ok. Kody:<br />main.c:<br />[syntax=c]//Function: This procedure is used based on the AVR microcontroller ATMEGA32A-PU to control the Nokia5110LCD<br />//Editing environment: the AVR Studio 4.0<br />//Figure wiring according to the principle of<br />//fuse bytes:<br />//Low byte: 0xc1<br />//High byt: 0xd9<br />//Extend: 0x00<br />//Lock byte: 0xff<br />//Crystal: internal RC oscillator 8MHz<br />//Time: April 25, 2013<br />#include&lt;avr/io.h&gt;<br />#include &lt;util/delay.h&gt;<br /><br />#define uint unsigned int<br />#define uchar unsigned char<br /><br />#include &quot;nokia_5110.h&quot;<br />#include &quot;bmp_pixel.h&quot;<br /><br />void delay_nms(unsigned int n)       //delay nms<br />  {<br />   for(int i=0; i&lt;n; i++) _delay_ms(1);<br />  }<br /><br /><br />/******************************************************************************/<br />void main(void) <br />{<br />  <br />LCD_init();       //LCD initialization<br />LCD_clear();      //clear the LCD<br />DDRD=0xFF;<br />// while(1)<br />// {<br />//   PORTD=0;<br />//   delay_nms(1000);<br />//   PORTD=0xFF;<br />//   delay_nms(1000);<br />// }<br />while(1)  <br />{<br />LCD_write_english_string(0,0,&quot; Welcome to  &quot;);    //x=0,y=0    write from the start in the first row<br />LCD_write_english_string(0,1,&quot; Amy  studio &quot;);    //x=0,y=1    write from the start in the second row<br />LCD_write_english_string(0,2,&quot;amy-studio.com&quot;);<br />LCD_write_english_string(0,3,&quot; Nokia5110 LCD&quot;);<br />LCD_write_chinese_string(12,4,12,4,0,5);  <br /><br />}  <br /><br /><br />}[/syntax]<br /><br />nokia_5110.h:<br />[syntax=c]#include &quot;english_6x8_pixel.h&quot;<br />#include &quot;write_chinese_string_pixel.h&quot;<br /><br />//<br />#define BIT(i)  (1&lt;&lt;i)  <br /><br />#define SCLK_set   PORTC|=BIT(4)      //serial clock input<br />#define SCLK_clr   PORTC&amp;=~BIT(4)  <br /><br />#define SDIN_set  PORTC|=BIT(3)      //serial data input   <br />#define SDIN_clr  PORTC&amp;=~BIT(3) <br /><br />#define LCD_DC_set   PORTC|=BIT(2)    //data/commande<br />#define LCD_DC_clr   PORTC&amp;=~BIT(2)  <br /><br />#define LCD_CE_set  PORTC|=BIT(1)      //chip enable<br />#define LCD_CE_clr  PORTC&amp;=~BIT(1) <br /> <br />#define LCD_RST_set  PORTC|=BIT(0)     //external reset input<br />#define LCD_RST_clr  PORTC&amp;=~BIT(0) <br /><br /><br />void delay_1us(void)                 //delay 1us<br />  {<br />     _delay_us(1);<br />  }<br /><br />void delay_1ms(void)                 //delay 1ms<br />  {<br />    _delay_ms(1);<br />  }<br />  <br />void delay_nms(unsigned int n)       //delay nms<br />  {<br />   for(int i=0; i&lt;n; i++) _delay_ms(1);<br />  }<br /><br /><br />void LCD_init(void)                 //LCD initialization<br />  {<br />    DDRC|=0X1F;    <br /><br />     LCD_RST_clr;<br />    delay_1us();<br />     LCD_RST_set;<br />    <br />    LCD_CE_clr;<br /><br />    delay_1us();<br />     LCD_CE_set;<br />  <br />    delay_1us();<br /><br />    LCD_write_byte(0x21, 0);// set LCD mode<br />    LCD_write_byte(0xc8, 0);// set bias voltage<br />    LCD_write_byte(0x06, 0);// temperature correction<br />    LCD_write_byte(0x13, 0);// 1:48<br />    LCD_write_byte(0x20, 0);// use bias command<br />    LCD_clear();           // clear the LCD<br />    LCD_write_byte(0x0c, 0);// set LCD mode,display normally<br />        <br />    LCD_CE_clr;    <br />  }<br /><br /><br />void LCD_clear(void)          // clear the LCD<br />  {<br />    unsigned int i;<br /><br />    LCD_write_byte(0x0c, 0);<br />    LCD_write_byte(0x80, 0);<br /><br />    for (i=0; i&lt;504; i++)<br />  {<br />       LCD_write_byte(0, 1);<br />  }<br />  }<br /><br />/*-----------------------------------------------------------------------<br />LCD_set_XY              : Set the LCD coordinate functions<br /><br />input parameter£ºX       £º0£­83<br />               Y        £º0£­5<br /><br />created date           £º2013-4-25<br />-----------------------------------------------------------------------*/<br />void LCD_set_XY(unsigned char X, unsigned char Y)<br />  {<br />    LCD_write_byte(0x40 | Y, 0);// column<br />    LCD_write_byte(0x80 | X, 0);          // row<br />  }<br /><br />/*-----------------------------------------------------------------------<br />LCD_write_char    : Display English characters<br /><br />input parameter£ºc   :char to display<br /><br />created date         £º2013-4-25<br />-----------------------------------------------------------------------*/<br />void LCD_write_char(unsigned char c)<br />  {<br />    unsigned char line;<br /><br />    c -= 32;<br /><br />    for (line=0; line&lt;6; line++)<br />      LCD_write_byte(font6x8&#91;c&#93;&#91;line&#93;, 1);<br />  }<br /><br />/*-----------------------------------------------------------------------<br />LCD_write_english_String  : Display English strings<br /><br />input parameter£ºX       £º0£­83<br />                Y        £º0£­5<br /><br />created date         £º2013-4-25<br />-----------------------------------------------------------------------*/<br />void LCD_write_english_string(unsigned char X,unsigned char Y,char *s)<br />  {<br />    LCD_set_XY(X,Y);<br />    while (*s) <br />      {<br /> LCD_write_char(*s);<br /> s++;<br />      }<br />  }<br />/*-----------------------------------------------------------------------<br />LCD_write_chinese_string: Display Chinese strings<br /><br />LCD_write_chi(0,0,12,7,0,0);<br />LCD_write_chi(0,2,12,7,0,0);<br />LCD_write_chi(0,4,12,7,0,0);<br />-----------------------------------------------------------------------*/                        <br />void LCD_write_chinese_string(unsigned char X, unsigned char Y, <br />                   unsigned char ch_with,unsigned char num,<br />                   unsigned char line,unsigned char row)<br />  {<br />    unsigned char i,n;<br />    <br />    LCD_set_XY(X,Y);                             //scale settings<br />    <br />    for (i=0;i&lt;num;)<br />      {<br />      for (n=0; n&lt;ch_with*2; n++)              //write a chinese<br />        { <br />          if (n==ch_with)                     <br />            {<br />              if (i==0) LCD_set_XY(X,Y+1);<br />              else<br />                 LCD_set_XY((X+(ch_with+row)*i),Y+1);<br />              }<br />          LCD_write_byte(write_chinese&#91;line+i&#93;&#91;n&#93;,1);<br />        }<br />      i++;<br />      LCD_set_XY((X+(ch_with+row)*i),Y);<br />      }<br />  }<br />  <br /><br /><br />/*-----------------------------------------------------------------------<br />LCD_draw_map      : Bitmap drawing function<br /><br />input parmenter£ºX¡¢Y    £ºstarting point X,Y£»<br />                 *map    £ºbitmap data<br />                 Pix_x   £ºhighth<br />                 Pix_y   £ºwidth<br /><br />created date         £º2013-4-25<br />-----------------------------------------------------------------------*/<br />void LCD_draw_bmp_pixel(unsigned char X,unsigned char Y,unsigned char *map,<br />                  unsigned char Pix_x,unsigned char Pix_y)<br />  {<br />    unsigned int i,n;<br />    unsigned char row;<br />    <br />    if (Pix_y%8==0) row=Pix_y/8;      //calculate how many line is needed<br />      else<br />        row=Pix_y/8+1;<br />    <br />    for (n=0;n&lt;row;n++)<br />      {<br />      LCD_set_XY(X,Y);<br />        for(i=0; i&lt;Pix_x; i++)<br />          {<br />            LCD_write_byte(map&#91;i+n*Pix_x&#93;, 1);<br />          }<br />        Y++;                         //chang line<br />      }      <br />  }<br /><br />/*-----------------------------------------------------------------------<br />LCD_write_byte    : write data to LCD<br /><br />input parmenter£ºdata    £ºdata<br />          command £ºcommand<br /><br />created date         £º2013-4-25<br />-----------------------------------------------------------------------*/<br />void LCD_write_byte(unsigned char dat, unsigned char command)<br />  {<br />    unsigned char i;<br />      LCD_CE_clr;<br />    <br />    if (command == 0)<br />       LCD_DC_clr;<br />    else<br />       LCD_DC_set;<br /><br />for(i=0;i&lt;8;i++)<br />{<br />if(dat&amp;0x80)<br />     SDIN_set;<br />else<br />      SDIN_clr;<br />    SCLK_clr;<br />dat = dat &lt;&lt; 1;<br />          SCLK_set;<br />}<br />       LCD_CE_set;<br />  }[/syntax]<br /><br />english_6x8_pixel.h:<br />[syntax=c]// 6 x 8 font<br />// 1 pixel space at left and bottom<br />// index = ASCII - 32<br />const unsigned char font6x8&#91;&#93;&#91;6&#93; =<br />{<br />    { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },   // sp<br />    { 0x00, 0x00, 0x00, 0x2f, 0x00, 0x00 },   // !<br />    { 0x00, 0x00, 0x07, 0x00, 0x07, 0x00 },   // &quot;<br />    { 0x00, 0x14, 0x7f, 0x14, 0x7f, 0x14 },   // #<br />    { 0x00, 0x24, 0x2a, 0x7f, 0x2a, 0x12 },   // $<br />    { 0x00, 0x62, 0x64, 0x08, 0x13, 0x23 },   // %<br />    { 0x00, 0x36, 0x49, 0x55, 0x22, 0x50 },   // &amp;<br />    { 0x00, 0x00, 0x05, 0x03, 0x00, 0x00 },   // '<br />    { 0x00, 0x00, 0x1c, 0x22, 0x41, 0x00 },   // (<br />    { 0x00, 0x00, 0x41, 0x22, 0x1c, 0x00 },   // )<br />    { 0x00, 0x14, 0x08, 0x3E, 0x08, 0x14 },   // *<br />    { 0x00, 0x08, 0x08, 0x3E, 0x08, 0x08 },   // +<br />    { 0x00, 0x00, 0x00, 0xA0, 0x60, 0x00 },   // ,<br />    { 0x00, 0x08, 0x08, 0x08, 0x08, 0x08 },   // -<br />    { 0x00, 0x00, 0x60, 0x60, 0x00, 0x00 },   // .<br />    { 0x00, 0x20, 0x10, 0x08, 0x04, 0x02 },   // /<br />    { 0x00, 0x3E, 0x51, 0x49, 0x45, 0x3E },   // 0<br />    { 0x00, 0x00, 0x42, 0x7F, 0x40, 0x00 },   // 1<br />    { 0x00, 0x42, 0x61, 0x51, 0x49, 0x46 },   // 2<br />    { 0x00, 0x21, 0x41, 0x45, 0x4B, 0x31 },   // 3<br />    { 0x00, 0x18, 0x14, 0x12, 0x7F, 0x10 },   // 4<br />    { 0x00, 0x27, 0x45, 0x45, 0x45, 0x39 },   // 5<br />    { 0x00, 0x3C, 0x4A, 0x49, 0x49, 0x30 },   // 6<br />    { 0x00, 0x01, 0x71, 0x09, 0x05, 0x03 },   // 7<br />    { 0x00, 0x36, 0x49, 0x49, 0x49, 0x36 },   // 8<br />    { 0x00, 0x06, 0x49, 0x49, 0x29, 0x1E },   // 9<br />    { 0x00, 0x00, 0x36, 0x36, 0x00, 0x00 },   // :<br />    { 0x00, 0x00, 0x56, 0x36, 0x00, 0x00 },   // ;<br />    { 0x00, 0x08, 0x14, 0x22, 0x41, 0x00 },   // &lt;<br />    { 0x00, 0x14, 0x14, 0x14, 0x14, 0x14 },   // =<br />    { 0x00, 0x00, 0x41, 0x22, 0x14, 0x08 },   // &gt;<br />    { 0x00, 0x02, 0x01, 0x51, 0x09, 0x06 },   // ?<br />    { 0x00, 0x32, 0x49, 0x59, 0x51, 0x3E },   // @<br />    { 0x00, 0x7C, 0x12, 0x11, 0x12, 0x7C },   // A<br />    { 0x00, 0x7F, 0x49, 0x49, 0x49, 0x36 },   // B<br />    { 0x00, 0x3E, 0x41, 0x41, 0x41, 0x22 },   // C<br />    { 0x00, 0x7F, 0x41, 0x41, 0x22, 0x1C },   // D<br />    { 0x00, 0x7F, 0x49, 0x49, 0x49, 0x41 },   // E<br />    { 0x00, 0x7F, 0x09, 0x09, 0x09, 0x01 },   // F<br />    { 0x00, 0x3E, 0x41, 0x49, 0x49, 0x7A },   // G<br />    { 0x00, 0x7F, 0x08, 0x08, 0x08, 0x7F },   // H<br />    { 0x00, 0x00, 0x41, 0x7F, 0x41, 0x00 },   // I<br />    { 0x00, 0x20, 0x40, 0x41, 0x3F, 0x01 },   // J<br />    { 0x00, 0x7F, 0x08, 0x14, 0x22, 0x41 },   // K<br />    { 0x00, 0x7F, 0x40, 0x40, 0x40, 0x40 },   // L<br />    { 0x00, 0x7F, 0x02, 0x0C, 0x02, 0x7F },   // M<br />    { 0x00, 0x7F, 0x04, 0x08, 0x10, 0x7F },   // N<br />    { 0x00, 0x3E, 0x41, 0x41, 0x41, 0x3E },   // O<br />    { 0x00, 0x7F, 0x09, 0x09, 0x09, 0x06 },   // P<br />    { 0x00, 0x3E, 0x41, 0x51, 0x21, 0x5E },   // Q<br />    { 0x00, 0x7F, 0x09, 0x19, 0x29, 0x46 },   // R<br />    { 0x00, 0x46, 0x49, 0x49, 0x49, 0x31 },   // S<br />    { 0x00, 0x01, 0x01, 0x7F, 0x01, 0x01 },   // T<br />    { 0x00, 0x3F, 0x40, 0x40, 0x40, 0x3F },   // U<br />    { 0x00, 0x1F, 0x20, 0x40, 0x20, 0x1F },   // V<br />    { 0x00, 0x3F, 0x40, 0x38, 0x40, 0x3F },   // W<br />    { 0x00, 0x63, 0x14, 0x08, 0x14, 0x63 },   // X<br />    { 0x00, 0x07, 0x08, 0x70, 0x08, 0x07 },   // Y<br />    { 0x00, 0x61, 0x51, 0x49, 0x45, 0x43 },   // Z<br />    { 0x00, 0x00, 0x7F, 0x41, 0x41, 0x00 },   // &#91;<br />    { 0x00, 0x55, 0x2A, 0x55, 0x2A, 0x55 },   // 55<br />    { 0x00, 0x00, 0x41, 0x41, 0x7F, 0x00 },   // &#93;<br />    { 0x00, 0x04, 0x02, 0x01, 0x02, 0x04 },   // ^<br />    { 0x00, 0x40, 0x40, 0x40, 0x40, 0x40 },   // _<br />    { 0x00, 0x00, 0x01, 0x02, 0x04, 0x00 },   // '<br />    { 0x00, 0x20, 0x54, 0x54, 0x54, 0x78 },   // a<br />    { 0x00, 0x7F, 0x48, 0x44, 0x44, 0x38 },   // b<br />    { 0x00, 0x38, 0x44, 0x44, 0x44, 0x20 },   // c<br />    { 0x00, 0x38, 0x44, 0x44, 0x48, 0x7F },   // d<br />    { 0x00, 0x38, 0x54, 0x54, 0x54, 0x18 },   // e<br />    { 0x00, 0x08, 0x7E, 0x09, 0x01, 0x02 },   // f<br />    { 0x00, 0x18, 0xA4, 0xA4, 0xA4, 0x7C },   // g<br />    { 0x00, 0x7F, 0x08, 0x04, 0x04, 0x78 },   // h<br />    { 0x00, 0x00, 0x44, 0x7D, 0x40, 0x00 },   // i<br />    { 0x00, 0x40, 0x80, 0x84, 0x7D, 0x00 },   // j<br />    { 0x00, 0x7F, 0x10, 0x28, 0x44, 0x00 },   // k<br />    { 0x00, 0x00, 0x41, 0x7F, 0x40, 0x00 },   // l<br />    { 0x00, 0x7C, 0x04, 0x18, 0x04, 0x78 },   // m<br />    { 0x00, 0x7C, 0x08, 0x04, 0x04, 0x78 },   // n<br />    { 0x00, 0x38, 0x44, 0x44, 0x44, 0x38 },   // o<br />    { 0x00, 0xFC, 0x24, 0x24, 0x24, 0x18 },   // p<br />    { 0x00, 0x18, 0x24, 0x24, 0x18, 0xFC },   // q<br />    { 0x00, 0x7C, 0x08, 0x04, 0x04, 0x08 },   // r<br />    { 0x00, 0x48, 0x54, 0x54, 0x54, 0x20 },   // s<br />    { 0x00, 0x04, 0x3F, 0x44, 0x40, 0x20 },   // t<br />    { 0x00, 0x3C, 0x40, 0x40, 0x20, 0x7C },   // u<br />    { 0x00, 0x1C, 0x20, 0x40, 0x20, 0x1C },   // v<br />    { 0x00, 0x3C, 0x40, 0x30, 0x40, 0x3C },   // w<br />    { 0x00, 0x44, 0x28, 0x10, 0x28, 0x44 },   // x<br />    { 0x00, 0x1C, 0xA0, 0xA0, 0xA0, 0x7C },   // y<br />    { 0x00, 0x44, 0x64, 0x54, 0x4C, 0x44 },   // z<br />    { 0x14, 0x14, 0x14, 0x14, 0x14, 0x14 }    // horiz lines<br />};[/syntax]<br /><br />bmp_pixel.h:<br />[syntax=c]/*------------------------------------------------------------------------------<br />;  MCU : AVR<br />;  width¡Áhighth: 40¡Á24<br />;  type matrix set: Single color dot matrix LCD type£¬mocking up through lengthways<br />;  date: 2013-4-25<br />------------------------------------------------------------------------------*/ <br />const unsigned char AVR_bmp&#91;&#93;=<br />{<br />0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0xC0,0x40,<br />0x20,0x00,0x10,0x10,0x00,0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x00,0x10,0x10,0x00,<br />0x20,0x40,0xC0,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,<br />0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x70,0x0C,0x02,0x01,0x00,<br />0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,<br />0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x02,0x0C,0x70,0x00,0x00,0x00,0x00,0x00,0x00,<br />0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7F,0x00,0x00,0x00,<br />0x80,0xC0,0xE0,0xE0,0xF0,0xF0,0xF0,0xF0,0xE0,0xC0,0x00,0x00,0x00,0x00,0x00,0xC0,<br />0xE0,0xF0,0xF0,0xF0,0xF0,0xE0,0xE0,0xC0,0x80,0x00,0x00,0x00,0x7F,0x00,0x00,0x00,<br />0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x07,0x00,<br />0x18,0x60,0x83,0x87,0x87,0x87,0x07,0x03,0x03,0x03,0x01,0x40,0xF0,0xF0,0xF0,0xF0,<br />0xF0,0x40,0x01,0x03,0x03,0x03,0x07,0x87,0x87,0x87,0x83,0x60,0x18,0x00,0x07,0x00,<br />0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,<br />0x00,0x00,0x00,0x00,0x00,0xFF,0x00,0x1F,0x27,0x48,0x88,0x88,0x88,0x88,0x88,0x48,<br />0x48,0x48,0x88,0x88,0x88,0x88,0x88,0x48,0x27,0x1F,0x00,0xFF,0x00,0x00,0x00,0x00,<br />0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,<br />0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x02,0x04,0x04,0x08,0x00,0x10,0x10,<br />0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x00,0x08,0x04,0x04,0x02,0x03,0x00,0x00,0x00,<br />0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,<br />0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,<br />0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,<br />0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00<br />};[/syntax]<br /><br />Makefile:<br /><div class="codetitle"><b>Code:</b></div><div class="codecontent"># avr-gcc makefile<br /><br /># Typ AVRa<br />MMCU = atmega8<br /><br /># Częstotliwość zegara<br />F_CPU = 1000000<br /><br /># Typ programatora<br />PROGRAMMER = USBasp<br />PROGRAMMER_PORT = /dev/ttyUSB0<br /><br /># Nazwa wynikowego pliku hex<br />PROJECT = nokialcd<br /><br /># Pliki źródłowe<br />SOURCES = main.c<br /><br />CC = avr-gcc<br />OBJCOPY = avr-objcopy<br /><br />CDEFS = -DF_CPU=$(F_CPU)UL<br /><br />CFLAGS = $(CDEFS) <br />CFLAGS += -mmcu=$(MMCU) -g -Os -Wall -std=c99<br /><br />OBJECTS = $(SOURCES:.c=.o)<br /><br />$(PROJECT).hex: $(PROJECT).out<br />   $(OBJCOPY) -O ihex -R .eeprom $(PROJECT).out $(PROJECT).hex<br /><br />$(PROJECT).out:  $(OBJECTS)<br />   $(CC)  $(CFLAGS) $^ -o $@ -lm<br /><br />$.o:%.c<br />   $(CC) $(CFLAGS) $&lt; -o $@<br /><br />program_flash: $(PROJECT).hex<br />   avrdude -c $(PROGRAMMER) -p $(MMCU) -P $(PROGRAMMER_PORT) -B 5 -U flash:w:$(PROJECT).hex<br /><br />clean:<br />   rm -f $(OBJECTS) <br />   rm -f $(PROJECT).out<br />   rm -f $(PROJECT).hex<br /><br />.PHONY: clean program_flash<br /><br /></div><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=7296">mily20001</a> — 29 sty 2015, o 23:29</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[WoodPaker]]></name></author>
<updated>2015-01-19T22:25:14+01:00</updated>
<published>2015-01-19T22:25:14+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=114931#p114931</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=114931#p114931"/>
<title type="html"><![CDATA[Re: Karta SD i LCD od nokii 3310 oraz jedna atmega]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=114931#p114931"><![CDATA[
Są dwie wersje. Z tego co wiem to 3310 ma 84x48px, a 5110 84x84px ale działąją na tym samym sterowniku więc ta biblioteka działa i tu i tam.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1425">WoodPaker</a> — 19 sty 2015, o 22:25</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mily20001]]></name></author>
<updated>2015-01-19T22:23:06+01:00</updated>
<published>2015-01-19T22:23:06+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=114930#p114930</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=114930#p114930"/>
<title type="html"><![CDATA[Re: Karta SD i LCD od nokii 3310 oraz jedna atmega]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=114930#p114930"><![CDATA[
Ok <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":)" title="Szczęśliwy" /><br />I jeszcze jedno pytanie, głównie z ciekawości - Jak to jest że nawet na alledrogo można znaleźć oferty gdzie ten lcd ma 84x48px oraz takie gdzie ma 84x84px. Która rozdzielczość jest poprawna? Chyba że po prostu to są dwie różne wersje tych wyświetlaczy, ale to by chyba było dość dziwne<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=7296">mily20001</a> — 19 sty 2015, o 22:23</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[WoodPaker]]></name></author>
<updated>2015-01-19T22:15:49+01:00</updated>
<published>2015-01-19T22:15:49+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=114927#p114927</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=114927#p114927"/>
<title type="html"><![CDATA[Re: Karta SD i LCD od nokii 3310 oraz jedna atmega]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=114927#p114927"><![CDATA[
Piny możesz sobie ustawić w programie na takie jakie Tobie odpowiadają.<br />Proponuje na początek ustawić sobie wyświetlanie obrazków bezpośrednio z flasha bo jeden łobrazek 84x84 pkt to jakieś 881 bajtów.<br />W tym wątku podałem jak to zrobić <!-- l --><a class="postlink-local" href="http://forum.atnel.pl/topic10258.html" >topic10258.html</a><!-- l --><br />Poza tym możesz wywalić część wyświetlającą chińskie znaki bo też niepotrzebnie zajmuje pamięć.<br />I powodzenia <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":)" title="Szczęśliwy" /><br /><br /><strong><span style="color: #808000">------------------------ [ Dodano po: 0,03(3) godzinach ]</span></strong><br /><br />Aaa i jeszcze trzeba lekko poprzestawiać kolejność procedur w bibliotece żeby ostrzeżeń (warning) nie dawała<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1425">WoodPaker</a> — 19 sty 2015, o 22:15</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mily20001]]></name></author>
<updated>2015-01-19T22:07:49+01:00</updated>
<published>2015-01-19T22:07:49+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=114923#p114923</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=114923#p114923"/>
<title type="html"><![CDATA[Re: Karta SD i LCD od nokii 3310 oraz jedna atmega]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=114923#p114923"><![CDATA[
Bardzo przydatna biblioteka, dziękuję. Jak rozumiem aby odpalić toto na atmedze8 wystarczy zmiana pinów używanych do sterowania?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=7296">mily20001</a> — 19 sty 2015, o 22:07</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[WoodPaker]]></name></author>
<updated>2015-01-19T21:56:03+01:00</updated>
<published>2015-01-19T21:56:03+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=114916#p114916</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=114916#p114916"/>
<title type="html"><![CDATA[Re: Karta SD i LCD od nokii 3310 oraz jedna atmega]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=114916#p114916"><![CDATA[
Ja założyłem, że czytelnik jest zdolny i da sobie rade... No ale różowi mają inaczej <img src="https://forum.atnel.pl/images/smilies/icon_twisted.gif" alt=":twisted:" title="Szalony" /><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1425">WoodPaker</a> — 19 sty 2015, o 21:56</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Jaglarz]]></name></author>
<updated>2015-01-19T21:48:16+01:00</updated>
<published>2015-01-19T21:48:16+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=114915#p114915</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=114915#p114915"/>
<title type="html"><![CDATA[Re: Karta SD i LCD od nokii 3310 oraz jedna atmega]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=10281&amp;p=114915#p114915"><![CDATA[
Link bezpośredni ze strony: <!-- m --><a class="postlink" href="http://www.icstation.com/ebay/IC/All%20data%20modules/1444.zip" >http://www.icstation.com/ebay/IC/All%20 ... s/1444.zip</a><!-- m --><br /><br /> <img src="https://forum.atnel.pl/images/smilies/icon_cool.gif" alt="8-)" title="Cool" /><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=471">Jaglarz</a> — 19 sty 2015, o 21:48</p><hr />
]]></content>
</entry>
</feed>