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

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2018-12-11T11:35:15+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=8&amp;t=21693&amp;mode</id>
<entry>
<author><name><![CDATA[m_wojcik74]]></name></author>
<updated>2018-12-11T11:35:15+01:00</updated>
<published>2018-12-11T11:35:15+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=21693&amp;p=214561#p214561</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=21693&amp;p=214561#p214561"/>
<title type="html"><![CDATA[Re: SSD1963 bez karty SD]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=21693&amp;p=214561#p214561"><![CDATA[
Dziękuję Panowie za pomoc, jednakże kolega Krauser trafił w samo sedno. Dziękuję jeszcze raz.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=863">m_wojcik74</a> — 11 gru 2018, o 11:35</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Krauser]]></name></author>
<updated>2018-12-10T21:40:47+01:00</updated>
<published>2018-12-10T21:40:47+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=21693&amp;p=214544#p214544</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=21693&amp;p=214544#p214544"/>
<title type="html"><![CDATA[Re: SSD1963 bez karty SD]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=21693&amp;p=214544#p214544"><![CDATA[
Zajrzyj do plików Tahoma48pt.c i Calibri18.c i zamień ostatni wpis na 0. Np tak:<br />[syntax=c]// Font information for Calibri 18pt<br />const FONT_INFO Calibri18ptFontInfo PROGMEM =<br />{<br />    23,  // Character height<br />    '!',  //  Start character<br />    3,  //  number of pixels of interspace between characters<br />    8,  // number of pixels of space character<br />    0, // Character descriptor array<br />    0, // Character bitmap array<br />    0 //&amp;FontNames&#91;_Calibri18pt&#93;&#91;0&#93; // (Pointer) Font filename saved on SD card or 0 (null) otherwise<br />};[/syntax]<br />To wyeliminuje błędy linkowania, ale tych czcionek nie możesz używać dopóki nie dodasz podobnie jak Tahoma 8pt<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=465">Krauser</a> — 10 gru 2018, o 21:40</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mczarny]]></name></author>
<updated>2018-12-10T18:32:48+01:00</updated>
<published>2018-12-10T18:32:48+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=21693&amp;p=214535#p214535</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=21693&amp;p=214535#p214535"/>
<title type="html"><![CDATA[Re: SSD1963 bez karty SD]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=21693&amp;p=214535#p214535"><![CDATA[
Kurczę trochę Ci wyrzucił tych błędów.<br />Ponieważ nie używasz karty a z tego co pamiętam Mirek wczytywał w testowym programie jakąś grafikę i fonty właśnie z karty wiec to właśnie może być przyczyną.<br />Druga sprawa to kompilator pisze Ci np.<br />[syntax=c]../MK_SSD1963/TFT_TEXT/mk_text.c: In function 'text_len_P':<br />../MK_SSD1963/TFT_TEXT/mk_text.c:273:10: warning: variable 'gH' set but not used &#91;-Wunused-but-set-variable&#93;<br />  uint8_t gH, gW, gS, gIS;[/syntax]<br />czyli co? w funkcji masz nieużywany &quot;gH&quot; - zobacz dlaczego.<br />Widzę też<br />[syntax=c]../main.c: In function 'main':<br />../main.c:55:3: warning: passing argument 1 of 'setCurrentFont' discards 'const' qualifier from pointer target type &#91;enabled by default&#93;[/syntax]<br />więc z tym &quot;const&quot; też nie do końca jest ok.<br />Przepatrz to na spokojnie po kolei - jak sam znajdziesz to satysfakcja duża <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=4651">mczarny</a> — 10 gru 2018, o 18:32</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[m_wojcik74]]></name></author>
<updated>2018-12-10T16:59:29+01:00</updated>
<published>2018-12-10T16:59:29+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=21693&amp;p=214533#p214533</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=21693&amp;p=214533#p214533"/>
<title type="html"><![CDATA[SSD1963 bez karty SD]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=21693&amp;p=214533#p214533"><![CDATA[
Dzień dobry,<br />co należy zmienić w kodzie z greenbooka aby wykorzystywać bibliotekę do SSD1963 bez karty pamięci. Potrzebuje tylko znaków które są zapisane w pamięci flash uC. Kod gotowy z książki się kompiluje, jednakże gdy zmieniam:<br /><br />[syntax=c]//************************ jeśli korzystamy z kart pamięci i Petit FAT<br />// *************************** deklarujemy 1<br />// *********************** jeśli nie korzystamy to<br />// *************************** deklarujemy 0<br />#define USE_PETIT_FAT 0[/syntax]<br /><br />na wartość 0, kompilacja nie przechodzi. Zaznaczam że funkcje main i while mam praktycznie pustą, sama inicjalizacja.<br /><br />błąd w eclipse:<br /><br />[syntax=c]16:53:55 **** Incremental Build of configuration Release for project LCD_project3 ****<br />make all <br />'Building file: ../MK_SSD1963/TFT_TEXT/mk_text.c'<br />'Invoking: AVR Compiler'<br />avr-gcc -Wall -Os -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=atmega64 -DF_CPU=18432000UL -MMD -MP -MF&quot;MK_SSD1963/TFT_TEXT/mk_text.d&quot; -MT&quot;MK_SSD1963/TFT_TEXT/mk_text.o&quot; -c -o &quot;MK_SSD1963/TFT_TEXT/mk_text.o&quot; &quot;../MK_SSD1963/TFT_TEXT/mk_text.c&quot;<br />../MK_SSD1963/TFT_TEXT/mk_text.c: In function 'text_len':<br />../MK_SSD1963/TFT_TEXT/mk_text.c:251:10: warning: variable 'gH' set but not used &#91;-Wunused-but-set-variable&#93;<br />  uint8_t gH, gW, gS, gIS;<br />          ^<br />../MK_SSD1963/TFT_TEXT/mk_text.c: In function 'text_len_P':<br />../MK_SSD1963/TFT_TEXT/mk_text.c:273:10: warning: variable 'gH' set but not used &#91;-Wunused-but-set-variable&#93;<br />  uint8_t gH, gW, gS, gIS;<br />          ^<br />'Finished building: ../MK_SSD1963/TFT_TEXT/mk_text.c'<br />' '<br />'Building file: ../MK_SSD1963/TFT_GRAPH/tft_graph.c'<br />'Invoking: AVR Compiler'<br />avr-gcc -Wall -Os -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=atmega64 -DF_CPU=18432000UL -MMD -MP -MF&quot;MK_SSD1963/TFT_GRAPH/tft_graph.d&quot; -MT&quot;MK_SSD1963/TFT_GRAPH/tft_graph.o&quot; -c -o &quot;MK_SSD1963/TFT_GRAPH/tft_graph.o&quot; &quot;../MK_SSD1963/TFT_GRAPH/tft_graph.c&quot;<br />'Finished building: ../MK_SSD1963/TFT_GRAPH/tft_graph.c'<br />' '<br />'Building file: ../MK_SSD1963/TFT_FONT/mk_fonts.c'<br />'Invoking: AVR Compiler'<br />avr-gcc -Wall -Os -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=atmega64 -DF_CPU=18432000UL -MMD -MP -MF&quot;MK_SSD1963/TFT_FONT/mk_fonts.d&quot; -MT&quot;MK_SSD1963/TFT_FONT/mk_fonts.o&quot; -c -o &quot;MK_SSD1963/TFT_FONT/mk_fonts.o&quot; &quot;../MK_SSD1963/TFT_FONT/mk_fonts.c&quot;<br />'Finished building: ../MK_SSD1963/TFT_FONT/mk_fonts.c'<br />' '<br />'Building file: ../MK_SSD1963/MK_SSD1963.c'<br />'Invoking: AVR Compiler'<br />avr-gcc -Wall -Os -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=atmega64 -DF_CPU=18432000UL -MMD -MP -MF&quot;MK_SSD1963/MK_SSD1963.d&quot; -MT&quot;MK_SSD1963/MK_SSD1963.o&quot; -c -o &quot;MK_SSD1963/MK_SSD1963.o&quot; &quot;../MK_SSD1963/MK_SSD1963.c&quot;<br />'Finished building: ../MK_SSD1963/MK_SSD1963.c'<br />' '<br />'Building file: ../aclock.c'<br />'Invoking: AVR Compiler'<br />avr-gcc -Wall -Os -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=atmega64 -DF_CPU=18432000UL -MMD -MP -MF&quot;aclock.d&quot; -MT&quot;aclock.o&quot; -c -o &quot;aclock.o&quot; &quot;../aclock.c&quot;<br />'Finished building: ../aclock.c'<br />' '<br />'Building file: ../main.c'<br />'Invoking: AVR Compiler'<br />avr-gcc -Wall -Os -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -std=gnu99 -funsigned-char -funsigned-bitfields -mmcu=atmega64 -DF_CPU=18432000UL -MMD -MP -MF&quot;main.d&quot; -MT&quot;main.o&quot; -c -o &quot;main.o&quot; &quot;../main.c&quot;<br />../main.c: In function 'main':<br />../main.c:55:3: warning: passing argument 1 of 'setCurrentFont' discards 'const' qualifier from pointer target type &#91;enabled by default&#93;<br />   setCurrentFont( &amp;DefaultFontInfo );<br />   ^<br />In file included from ../MK_SSD1963/MK_SSD1963.h:9:0,<br />                 from ../main.c:15:<br />../MK_SSD1963/TFT_TEXT/mk_text.h:15:6: note: expected 'struct FONT_INFO *' but argument is of type 'const struct FONT_INFO *'<br /> void setCurrentFont( FONT_INFO * font );<br />      ^<br />../main.c:80:3: warning: passing argument 1 of 'setCurrentFont' discards 'const' qualifier from pointer target type &#91;enabled by default&#93;<br />   setCurrentFont( &amp;DefaultFontInfo );<br />   ^<br />In file included from ../MK_SSD1963/MK_SSD1963.h:9:0,<br />                 from ../main.c:15:<br />../MK_SSD1963/TFT_TEXT/mk_text.h:15:6: note: expected 'struct FONT_INFO *' but argument is of type 'const struct FONT_INFO *'<br /> void setCurrentFont( FONT_INFO * font );<br />      ^<br />'Finished building: ../main.c'<br />' '<br />'Building target: L15a_LCD_TFT_35.elf'<br />'Invoking: AVR C Linker'<br />avr-gcc -Wl,-Map,L15a_LCD_TFT_35.map -mmcu=atmega64 -o &quot;L15a_LCD_TFT_35.elf&quot;  ./PetitFS/mmc.o ./PetitFS/pff.o  ./MK_SSD1963/TFT_TEXT/mk_text.o  ./MK_SSD1963/TFT_GRAPH/tft_graph.o  ./MK_SSD1963/TFT_FONT/Calibri18.o ./MK_SSD1963/TFT_FONT/Courier10b.o ./MK_SSD1963/TFT_FONT/Tahoma48pt.o ./MK_SSD1963/TFT_FONT/default_font.o ./MK_SSD1963/TFT_FONT/mk_fonts.o  ./MK_SSD1963/MK_SSD1963.o  ./MK_PETIT_UTIL/mk_petit_util.o  ./IR_UNI/ir_jvc.o ./IR_UNI/ir_rc5.o ./IR_UNI/ir_samsung.o ./IR_UNI/ir_sony.o  ./I2C_TWI/i2c_twi.o  ./aclock.o ./glyph_avr24x24.o ./main.o   <br />./MK_SSD1963/TFT_FONT/Calibri18.o:(.progmem.data.Calibri18ptFontInfo+0x8): undefined reference to `FontNames'<br />./MK_SSD1963/TFT_FONT/Tahoma48pt.o:(.progmem.data.Tahoma48ptFontInfo+0x8): undefined reference to `FontNames'<br />collect2.exe: error: ld returned 1 exit status<br />make: *** &#91;L15a_LCD_TFT_35.elf&#93; Błąd 1<br /><br />16:53:57 Build Finished. 0 errors, 4 warnings. (took 2s.405ms)[/syntax]<br /><br />W kodzie pododawałem tylko przedrostki &quot;const&quot; tam gdzie krzyczał kompilator - nowsza wersja toolchaina.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=863">m_wojcik74</a> — 10 gru 2018, o 16:59</p><hr />
]]></content>
</entry>
</feed>