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

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2016-11-20T17:36:25+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=4&amp;t=16864&amp;mode</id>
<entry>
<author><name><![CDATA[Daro69]]></name></author>
<updated>2016-11-20T17:36:25+01:00</updated>
<published>2016-11-20T17:36:25+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=16864&amp;p=175252#p175252</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=16864&amp;p=175252#p175252"/>
<title type="html"><![CDATA[Re: lcd44780 problem z wyświetlaniem nietypowych znaków]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=16864&amp;p=175252#p175252"><![CDATA[
<div class="quotetitle">mirekk36 napisał(a):</div><div class="quotecontent"><br />w wielkim skrócie to taki mały &quot;myk&quot; biblioteki HD44780 którą przedstawiłem w Bluebooku,<br />która przemapowuje kody znaków od 0-7 na 0x80-0x87 .....<br /></div><br />Ostatnio to mój ulubiony zakres &quot;przemapowanie&quot; .<br />Chociażby do celów j.w. - własna czcionka lub cyfry, a nawet proste animacje na LCD'ku.  <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=11549">Daro69</a> — 20 lis 2016, o 17:36</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mirekk36]]></name></author>
<updated>2016-11-20T17:26:48+01:00</updated>
<published>2016-11-20T17:26:48+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=16864&amp;p=175250#p175250</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=16864&amp;p=175250#p175250"/>
<title type="html"><![CDATA[Re: lcd44780 problem z wyświetlaniem nietypowych znaków]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=16864&amp;p=175250#p175250"><![CDATA[
<div class="quotetitle">Situs napisał(a):</div><div class="quotecontent"><br />bluebooka nie mam ale ok.<br /></div><br />Może więc warto ? ...<br /><br />ale ok w takim razie uzupełnię ....<br /><br />Jak zapisać w postaci HEX kod ASCII znaku 'A' (0x41) wewnątrz stringu ? Odpowiedź:<br /><br />tak:<br /><br />&quot;\x41&quot;<br /><br />teraz jaśniej ?<br /><br />A dlaczego czytelnicy Bluebooka korzystają z tak zapisanych kodów ASCII ? np \x80 czy \x81 itp ?<br /><br />No to już bym musiał za długo się rozpisywać - w wielkim skrócie to taki mały &quot;myk&quot; biblioteki HD44780 którą przedstawiłem w Bluebooku, która przemapowuje kody znaków od 0-7 na 0x80-0x87 ..... dlaczego ? Teraz już się pewnie domyślasz.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=54">mirekk36</a> — 20 lis 2016, o 17:26</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Situs]]></name></author>
<updated>2016-11-20T15:46:30+01:00</updated>
<published>2016-11-20T15:46:30+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=16864&amp;p=175247#p175247</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=16864&amp;p=175247#p175247"/>
<title type="html"><![CDATA[Re: lcd44780 problem z wyświetlaniem nietypowych znaków]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=16864&amp;p=175247#p175247"><![CDATA[
bluebooka nie mam ale ok.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=14339">Situs</a> — 20 lis 2016, o 15:46</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mirekk36]]></name></author>
<updated>2016-11-20T15:35:58+01:00</updated>
<published>2016-11-20T15:35:58+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=16864&amp;p=175245#p175245</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=16864&amp;p=175245#p175245"/>
<title type="html"><![CDATA[Re: lcd44780 problem z wyświetlaniem nietypowych znaków]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=16864&amp;p=175245#p175245"><![CDATA[
<div class="quotetitle">Situs napisał(a):</div><div class="quotecontent"><br />Ja się doczepię : zamiast \ powinno być \\ np zamiast &quot;\x86&quot; powinno być &quot;\\x86&quot;. Wyświetli tak samo, ale \ to znak specjalny i trzeba go szanować(p.ż.p.s.).<br /></div><br />No widzisz nie warto sie czepiac ... warto pomagac.... bo z czepiania sie nic dobrego nie wychodzi ... <br /><br />Kompletnie nie masz racji i dziwne rzeczy piszesz .... w tym wypadku ma byc \ a nie zadne \\ ... zajrzys sobie do Bluebooka to zrozumiesz w czym rzecz<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=54">mirekk36</a> — 20 lis 2016, o 15:35</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Situs]]></name></author>
<updated>2016-11-20T15:16:49+01:00</updated>
<published>2016-11-20T15:16:49+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=16864&amp;p=175241#p175241</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=16864&amp;p=175241#p175241"/>
<title type="html"><![CDATA[Re: lcd44780 problem z wyświetlaniem nietypowych znaków]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=16864&amp;p=175241#p175241"><![CDATA[
Ja się doczepię : zamiast \ powinno być \\ np zamiast &quot;\x86&quot; powinno być &quot;\\x86&quot;. Wyświetli tak samo, ale \ to znak specjalny i trzeba go szanować(p.ż.p.s.).<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=14339">Situs</a> — 20 lis 2016, o 15:16</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[driver0207]]></name></author>
<updated>2016-11-20T14:44:19+01:00</updated>
<published>2016-11-20T14:44:19+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=16864&amp;p=175237#p175237</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=16864&amp;p=175237#p175237"/>
<title type="html"><![CDATA[Re: lcd44780 problem z wyświetlaniem nietypowych znaków]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=16864&amp;p=175237#p175237"><![CDATA[
Lol takie niedopatrzenie XD <br />Dzięki Mirku <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":)" title="Szczęśliwy" /><br />Wszystko zaczęło działać jak lcd_init dałem na początek main:)<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=2199">driver0207</a> — 20 lis 2016, o 14:44</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mirekk36]]></name></author>
<updated>2016-11-20T14:29:37+01:00</updated>
<published>2016-11-20T14:29:37+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=16864&amp;p=175235#p175235</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=16864&amp;p=175235#p175235"/>
<title type="html"><![CDATA[Re: lcd44780 problem z wyświetlaniem nietypowych znaków]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=16864&amp;p=175235#p175235"><![CDATA[
No no a lcd init po defchar ... no super <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=54">mirekk36</a> — 20 lis 2016, o 14:29</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[anshar]]></name></author>
<updated>2016-11-20T14:04:16+01:00</updated>
<published>2016-11-20T14:04:16+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=16864&amp;p=175232#p175232</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=16864&amp;p=175232#p175232"/>
<title type="html"><![CDATA[Re: lcd44780 problem z wyświetlaniem nietypowych znaków]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=16864&amp;p=175232#p175232"><![CDATA[
Masz podłączony pin RW wyświetlacza do uC?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=7157">anshar</a> — 20 lis 2016, o 14:04</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[driver0207]]></name></author>
<updated>2016-11-20T13:48:11+01:00</updated>
<published>2016-11-20T13:48:11+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=16864&amp;p=175231#p175231</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=16864&amp;p=175231#p175231"/>
<title type="html"><![CDATA[Re: lcd44780 problem z wyświetlaniem nietypowych znaków]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=16864&amp;p=175231#p175231"><![CDATA[
hmm..<br />Dałem wszystkie  znaki do pamięci ram  i próbuje wyświetlić pojedynczy znak z zdefiniowany i dalej nic z tego:/<br /><br />[syntax=c]/*<br /> * main.c<br /> *<br /> *  Created on: 5 lis 2016<br /> *      Author: pracownia-projektowa<br /> */<br /><br />#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;stdio.h&gt;<br />#include &lt;string.h&gt;<br />#include  &quot;ADC/adc.h&quot;<br />#include &quot;LCD/lcd44780.h&quot;<br /><br />uint8_t dziesiatki ,jednostki ,dziesietne , setne ;<br />uint8_t ms;<br /><br /><br />uint8_t tab5&#91;&#93; = {32 , 32 , 32 , 32 , 14 , 14 , 14 , 14 };<br />uint8_t tab1&#91;&#93;  = {31 , 31 , 32 , 32 , 32 , 32 , 31 , 31 };<br />uint8_t tab2&#91;&#93;  = {32 , 32 , 32 , 32 , 32 , 32 , 31 , 31 };<br />uint8_t tab3&#91;&#93;  = {31 , 31 , 32 , 32 , 32 , 32 , 32 , 32 };<br />uint8_t tab4&#91;&#93;  = {31 , 31 , 31 , 31 , 31 , 31 , 31 , 31 };<br /><br /><br />void wyswietl(void);<br />void przeliczanie(void);<br /><br />char linia_d&#91;10&#93;&#91;4&#93; = {<br />    { &quot;\x84\x82\x84&quot; },<br />    { &quot;  &quot;&quot;\x84&quot; },<br />    { &quot;\x84\x82\x82&quot; },<br />    { &quot;\x82\x82\x84&quot; },<br />{ &quot;  &quot;&quot;\x84&quot; },<br />    { &quot;\x82\x82\x84&quot; },<br />    { &quot;\x84\x82\x84&quot; },<br />{ &quot;  &quot;&quot;\x84&quot; },<br />    { &quot;\x84\x82\x84&quot; },<br />    { &quot;\x82\x82\x84&quot; }<br />};<br /><br /><br /><br />    char linia_g&#91;10&#93;&#91;4&#93; = {<br />        { &quot;\x84\x83\x84&quot; },<br />        { &quot;  &quot;&quot;\x84&quot; },<br />        { &quot;\x81\x81\x84&quot; },<br />        { &quot;\x81\x81\x84&quot; },<br />        { &quot;\x84\x82\x84&quot; },<br />        { &quot;\x84\x81\x81&quot; },<br />        { &quot;\x84\x81\x81&quot; },<br />        { &quot;\x83\x83\x84&quot; },<br />        { &quot;\x84\x81\x84&quot; },<br />        { &quot;\x84\x81\x84&quot; }<br />    };<br /><br /><br /><br />int main (void){<br />lcd_defchar(0x86,tab5);<br />lcd_defchar(0x81,tab1);<br />lcd_defchar(0x82,tab2);<br />lcd_defchar(0x83,tab3);<br />lcd_defchar(0x84,tab4);<br /><br /><br /><br /><br />lcd_init();<br />TCCR2 |= (1&lt;&lt;WGM21);<br />TCCR2 |= (1&lt;&lt;CS20)|(1&lt;&lt;CS21)|(1&lt;&lt;CS22);<br />OCR2 = 107;<br />TIMSK |= (1&lt;&lt;OCIE2);<br /><br /><br />init_adc();<br />sei();<br />while(1){<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />}<br /><br />}<br /><br /><br />void wyswietl(void){<br /><br /><br /><br /><br />lcd_cls();<br />lcd_locate(0,0);<br />lcd_str(&quot;\x86&quot;);<br />//if(dziesiatki == 0){<br />//lcd_str(&quot;   &quot;  );<br />//<br />//}else{<br />//lcd_str(linia_g&#91;dziesiatki&#93;  );<br />//}<br />//<br />//<br />//<br />//<br />//    lcd_str(&quot; &quot;);<br />//lcd_str(linia_g&#91;jednostki&#93;);<br />//lcd_str(&quot; &quot;);<br />//lcd_str(linia_g&#91;dziesietne&#93;);<br />//lcd_str(&quot; &quot;);<br />//lcd_str(linia_g&#91;setne&#93;);<br />//lcd_locate(1,0);<br />//<br />//if(dziesiatki == 0){<br />//lcd_str(&quot;   &quot;  );<br />//<br />//}else{<br />//lcd_str(linia_d&#91;dziesiatki&#93;  );<br />//}<br />//<br />//<br />//<br />//<br />//lcd_str(&quot; &quot;);<br />//lcd_str(linia_d&#91;jednostki&#93;);<br />//lcd_str(&quot;\x86&quot;);<br />//lcd_str(linia_d&#91;dziesietne&#93;);<br />//lcd_str(&quot; &quot;);<br />//lcd_str(linia_d&#91;setne&#93;);<br /><br />}<br /><br />void przeliczanie(void){<br />dziesiatki = cz_d /10;<br />jednostki  = cz_d % 10;<br />dziesietne = cz_u / 10;<br />setne = cz_u %10;<br /><br /><br /><br /><br />}<br /><br /><br /><br /><br /><br />ISR(TIMER2_COMP_vect){<br /><br />ms++;<br />if (ms&gt;50){<br />ms=0;<br />napiecie();<br />przeliczanie();<br />wyswietl();<br /><br />}<br /><br /><br /><br /><br />}[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=2199">driver0207</a> — 20 lis 2016, o 13:48</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mirekk36]]></name></author>
<updated>2016-11-20T13:26:52+01:00</updated>
<published>2016-11-20T13:26:52+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=16864&amp;p=175224#p175224</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=16864&amp;p=175224#p175224"/>
<title type="html"><![CDATA[Re: lcd44780 problem z wyświetlaniem nietypowych znaków]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=16864&amp;p=175224#p175224"><![CDATA[
[syntax=c]lcd_str(&quot;\x86&quot;);[/syntax]<br /><br />tak to jest jak się zapomina o tym, że znak zdefiniowany we FLASH a ty chcesz wyświetlać z RAM<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=54">mirekk36</a> — 20 lis 2016, o 13:26</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[driver0207]]></name></author>
<updated>2016-11-20T13:18:08+01:00</updated>
<published>2016-11-20T13:18:08+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=16864&amp;p=175223#p175223</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=16864&amp;p=175223#p175223"/>
<title type="html"><![CDATA[lcd44780 problem z wyświetlaniem nietypowych znaków]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=16864&amp;p=175223#p175223"><![CDATA[
Witam mam taki mały problem z wyświetlaniem nietypowych znaków na wyświetlaczu  44780  zamiast zdefiniowanych znaków wyświetlają mi się same krzaczki <br />Biblioteka do obsługi wyświetlacza Mirkowa . <br /><br />Normalne napisy wyświetlają się poprawnie.<br /><br />Poniżej kod programu.<br /><br />[syntax=c]* main.c<br /> *<br /> *  Created on: 5 lis 2016<br /> *      Author: pracownia-projektowa<br /> */<br /><br />#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;stdio.h&gt;<br />#include &lt;string.h&gt;<br />#include  &quot;ADC/adc.h&quot;<br />#include &quot;LCD/lcd44780.h&quot;<br /><br />uint8_t dziesiatki ,jednostki ,dziesietne , setne ;<br />uint8_t ms;<br /><br /><br />const uint8_t tab5&#91;&#93; PROGMEM = {32 , 32 , 32 , 32 , 14 , 14 , 14 , 14 };<br />const uint8_t tab1&#91;&#93; PROGMEM = {31 , 31 , 32 , 32 , 32 , 32 , 31 , 31 };<br />const uint8_t tab2&#91;&#93; PROGMEM = {32 , 32 , 32 , 32 , 32 , 32 , 31 , 31 };<br />const uint8_t tab3&#91;&#93; PROGMEM = {31 , 31 , 32 , 32 , 32 , 32 , 32 , 32 };<br />const uint8_t tab4&#91;&#93; PROGMEM = {31 , 31 , 31 , 31 , 31 , 31 , 31 , 31 };<br /><br /><br />void wyswietl(void);<br />void przeliczanie(void);<br />char linia_d&#91;10&#93;&#91;4&#93; = {<br />    { &quot;\x84\x82\x84&quot; },<br />    { &quot;  &quot;&quot;\x84&quot; },<br />    { &quot;\x84\x82\x82&quot; },<br />    { &quot;\x82\x82\x84&quot; },<br />{ &quot;  &quot;&quot;\x84&quot; },<br />    { &quot;\x82\x82\x84&quot; },<br />    { &quot;\x84\x82\x84&quot; },<br />{ &quot;  &quot;&quot;\x84&quot; },<br />    { &quot;\x84\x82\x84&quot; },<br />    { &quot;\x82\x82\x84&quot; }<br />};<br /><br /><br /><br />    char linia_g&#91;10&#93;&#91;4&#93; = {<br />        { &quot;\x84\x83\x84&quot; },<br />        { &quot;  &quot;&quot;\x84&quot; },<br />        { &quot;\x81\x81\x84&quot; },<br />        { &quot;\x81\x81\x84&quot; },<br />        { &quot;\x84\x82\x84&quot; },<br />        { &quot;\x84\x81\x81&quot; },<br />        { &quot;\x84\x81\x81&quot; },<br />        { &quot;\x83\x83\x84&quot; },<br />        { &quot;\x84\x81\x84&quot; },<br />        { &quot;\x84\x81\x84&quot; }<br />    };<br /><br /><br /><br />int main (void){<br />lcd_defchar_P(0x86,tab5);<br />lcd_defchar_P(0x81,tab1);<br />lcd_defchar_P(0x82,tab2);<br />lcd_defchar_P(0x83,tab3);<br />lcd_defchar_P(0x84,tab4);<br /><br /><br /><br /><br />lcd_init();<br />TCCR2 |= (1&lt;&lt;WGM21);<br />TCCR2 |= (1&lt;&lt;CS20)|(1&lt;&lt;CS21)|(1&lt;&lt;CS22);<br />OCR2 = 107;<br />TIMSK |= (1&lt;&lt;OCIE2);<br /><br /><br />init_adc();<br />sei();<br />while(1){<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />}<br /><br />}<br /><br /><br />void wyswietl(void){<br /><br /><br /><br /><br />lcd_cls();<br />lcd_locate(0,0);<br /><br />if(dziesiatki == 0){<br />lcd_str(&quot;   &quot;  );<br /><br />}else{<br />lcd_str(linia_g&#91;dziesiatki&#93;  );<br />}<br /><br /><br /><br /><br />    lcd_str(&quot; &quot;);<br />lcd_str(linia_g&#91;jednostki&#93;);<br />lcd_str(&quot; &quot;);<br />lcd_str(linia_g&#91;dziesietne&#93;);<br />lcd_str(&quot; &quot;);<br />lcd_str(linia_g&#91;setne&#93;);<br />lcd_locate(1,0);<br /><br />if(dziesiatki == 0){<br />lcd_str(&quot;   &quot;  );<br /><br />}else{<br />lcd_str(linia_d&#91;dziesiatki&#93;  );<br />}<br /><br /><br /><br /><br />lcd_str(&quot; &quot;);<br />lcd_str(linia_d&#91;jednostki&#93;);<br />lcd_str(&quot;\x86&quot;);<br />lcd_str(linia_d&#91;dziesietne&#93;);<br />lcd_str(&quot; &quot;);<br />lcd_str(linia_d&#91;setne&#93;);<br /><br />}<br /><br />void przeliczanie(void){<br />dziesiatki = cz_d /10;<br />jednostki  = cz_d % 10;<br />dziesietne = cz_u / 10;<br />setne = cz_u %10;<br /><br /><br /><br /><br />}<br /><br /><br /><br /><br /><br />ISR(TIMER2_COMP_vect){<br /><br />ms++;<br />if (ms&gt;50){<br />ms=0;<br />napiecie();<br />przeliczanie();<br />wyswietl();<br /><br />}<br /><br /><br /><br /><br />}[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=2199">driver0207</a> — 20 lis 2016, o 13:18</p><hr />
]]></content>
</entry>
</feed>