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

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2016-08-12T20:33:41+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=4&amp;t=15753&amp;mode</id>
<entry>
<author><name><![CDATA[Situs]]></name></author>
<updated>2016-08-12T20:33:41+01:00</updated>
<published>2016-08-12T20:33:41+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15753&amp;p=165945#p165945</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15753&amp;p=165945#p165945"/>
<title type="html"><![CDATA[Re: Obsługa wyświetlacza graficznego]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15753&amp;p=165945#p165945"><![CDATA[
I poza tym w pliku window.h zamień [syntax=c]extern window_type window&#91;10&#93;;[/syntax] na [syntax=c]extern window_type window&#91;5&#93;;[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=14339">Situs</a> — 12 sie 2016, o 20:33</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[resonator]]></name></author>
<updated>2016-07-10T11:09:36+01:00</updated>
<published>2016-07-10T11:09:36+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15753&amp;p=163773#p163773</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15753&amp;p=163773#p163773"/>
<title type="html"><![CDATA[Re: Obsługa wyświetlacza graficznego]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15753&amp;p=163773#p163773"><![CDATA[
<div class="codetitle"><b>Code:</b></div><div class="codecontent">../window.c:13:3: warning: missing braces around initializer &#91;-Wmissing-braces&#93;<br />   {{10, 10, &quot;EKRAN A&quot;, arial16font},<br />   ^<br />../window.c:13:3: warning: (near initialization for ‘window&#91;0&#93;.label&#91;0&#93;’) &#91;-Wmissing-braces&#93;<br />../window.c:13:3: error: initializer element is not constant<br />../window.c:13:3: error: (near initialization for ‘window&#91;0&#93;.label&#91;0&#93;.font’)<br />../window.c:14:3: error: extra brace group at end of initializer<br />   {10, 10, &quot;EKRAN B&quot;, arial16font},<br />   ^<br />../window.c:14:3: error: (near initialization for ‘window&#91;0&#93;’)<br />../window.c:14:3: warning: excess elements in struct initializer &#91;enabled by default&#93;<br />../window.c:14:3: warning: (near initialization for ‘window&#91;0&#93;’) &#91;enabled by default&#93;<br />../window.c:15:3: error: extra brace group at end of initializer<br />   {10, 10, &quot;EKRAN C&quot;, arial16font},<br />   ^<br />../window.c:15:3: error: (near initialization for ‘window&#91;0&#93;’)<br />../window.c:15:3: warning: excess elements in struct initializer &#91;enabled by default&#93;<br />../window.c:15:3: warning: (near initialization for ‘window&#91;0&#93;’) &#91;enabled by default&#93;<br />../window.c:16:3: error: extra brace group at end of initializer<br />   {10, 10, &quot;EKRAN D&quot;, arial16font},<br />   ^<br />../window.c:16:3: error: (near initialization for ‘window&#91;0&#93;’)<br />../window.c:16:3: warning: excess elements in struct initializer &#91;enabled by default&#93;<br />../window.c:16:3: warning: (near initialization for ‘window&#91;0&#93;’) &#91;enabled by default&#93;<br />../window.c:17:3: error: extra brace group at end of initializer<br />   {10, 10, &quot;EKRAN E&quot;, arial16font}}<br />   ^<br />../window.c:17:3: error: (near initialization for ‘window&#91;0&#93;’)<br />../window.c:17:3: warning: excess elements in struct initializer &#91;enabled by default&#93;<br />../window.c:17:3: warning: (near initialization for ‘window&#91;0&#93;’) &#91;enabled by default&#93;<br />make: *** &#91;window.o&#93; Error 1</div><br />W tym kodzie jest uzyta tylko <strong>1</strong> struktura &quot;window&quot;, w której tworze 5 obiektów (wybaczcie, przyzwyczajenie z javy <img src="https://forum.atnel.pl/images/smilies/icon_e_biggrin.gif" alt=":D" title="Bardzo szczęśliwy" />) typu &quot;label&quot;<br /><br /><div class="quotetitle">Situs napisał(a):</div><div class="quotecontent"><br />Po co tak sobie komplikować życie?Ja bym napisał kilka klas w c++ np button, window, label, checkbox, okienka dialogowe jak to na windowsie bywa, podłączyłbym myszkę ps/2 i klawiakurkę i kartę sd i bym system napisal pozdro<br /></div><br />To c++ kuszące <img src="https://forum.atnel.pl/images/smilies/icon_e_biggrin.gif" alt=":D" title="Bardzo szczęśliwy" /><br /><br />@Edit<br />Problem rozwiązany, napisałem to na klasach w cpp <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=8721">resonator</a> — 10 lip 2016, o 11:09</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Situs]]></name></author>
<updated>2016-07-10T08:35:04+01:00</updated>
<published>2016-07-10T08:35:04+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15753&amp;p=163759#p163759</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15753&amp;p=163759#p163759"/>
<title type="html"><![CDATA[Re: Obsługa wyświetlacza graficznego]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15753&amp;p=163759#p163759"><![CDATA[
Po co tak sobie komplikować życie?Ja bym napisał kilka klas w c++ np button, window, label, checkbox, okienka dialogowe jak to na windowsie bywa, podłączyłbym myszkę ps/2 i klawiakurkę i kartę sd i bym system napisal pozdro<br /><br /><strong><span style="color: #808000">------------------------ [ Dodano po: 5 minutach ]</span></strong><br /><br />I musisz zmienić [syntax=c]window&#91;5&#93;[/syntax]<br />na [syntax=c]window&#91;6&#93;[/syntax]dla 6 elementów<br /><br /><strong><span style="color: #808000">------------------------ [ Dodano po: 6 minutach ]</span></strong><br /><br />Poza tym podaj kod z błędem ok?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=14339">Situs</a> — 10 lip 2016, o 08:35</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[kicajek]]></name></author>
<updated>2016-07-10T06:07:21+01:00</updated>
<published>2016-07-10T06:07:21+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15753&amp;p=163757#p163757</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15753&amp;p=163757#p163757"/>
<title type="html"><![CDATA[Re: Obsługa wyświetlacza graficznego]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15753&amp;p=163757#p163757"><![CDATA[
Witam<br /><div class="quotetitle">resonator napisał(a):</div><div class="quotecontent"><br />...to pluje masą błędów... Napewno to jakiś głupi błąd... .<br /></div><br />...a jak wygląda choć szczypta tej masy?  <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /> <br /><br />Pozdr.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=826">kicajek</a> — 10 lip 2016, o 06:07</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[SunRiver]]></name></author>
<updated>2016-07-09T22:05:46+01:00</updated>
<published>2016-07-09T22:05:46+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15753&amp;p=163750#p163750</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15753&amp;p=163750#p163750"/>
<title type="html"><![CDATA[Re: Obsługa wyświetlacza graficznego]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15753&amp;p=163750#p163750"><![CDATA[
<span style="color: #FF0000"><strong>PROSZĘ NATYCHMIAST POPRAWIĆ WSTAWIANIE KODÓW <br />I ZAPOZNAĆ SIĘ Z ZASADAMI NA FORUM !!!<br /><br /><!-- l --><a class="postlink-local" href="http://forum.atnel.pl/topic14999.html" >topic14999.html</a><!-- l --><br /><br />NIESTOSOWANIE SIĘ  WIĄŻE SIĘ NAWET Z USUNIĘCIEM Z FORUM !!</span>!</strong><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=58">SunRiver</a> — 9 lip 2016, o 22:05</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[resonator]]></name></author>
<updated>2016-07-09T22:53:27+01:00</updated>
<published>2016-07-09T21:57:59+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=15753&amp;p=163749#p163749</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=15753&amp;p=163749#p163749"/>
<title type="html"><![CDATA[Obsługa wyświetlacza graficznego]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=15753&amp;p=163749#p163749"><![CDATA[
Szukałem jakiegoś sposobu żeby usystematyzować od strony programowej dane które wysyłam do wyświetlacza. No wiecie jakieś struktury, wskaźniki i inne bajery. <br />Wymyśliłem coś takiego: struktury dla każdego typu elementów na wyświetlaczu (label, button, itp.), potem struktura &quot;window&quot;, zawierająca tablice wcześniej wymienionych struktur, na końcu tablica która zawiera struktury &quot;window&quot;. <br />Napisałem taki kod:<br /><br />label.h:<br />[syntax=c]#include &quot;../fonts/font.h&quot;<br /><br />#ifndef LABEL_C_H_<br />#define LABEL_C_H_<br /><br />typedef struct<br />{<br />unsigned int x, y;<br />const char *str;<br />fontType font;<br />} label_c_type;<br /><br />#endif /* LABEL_C_H_ */[/syntax]<br /><br />window.h<br />[syntax=c]/*______TEMPLATES____________________________________________________________ */<br />#include &quot;templates/label_c.h&quot;<br /><br />#include &quot;fonts/font.h&quot;<br /><br />#ifndef WINDOW_H_<br />#define WINDOW_H_<br /><br />typedef struct<br />{<br />label_c_type label&#91;10&#93;;<br />} window_type;<br /><br />extern window_type window&#91;10&#93;;<br /><br />#include <br />#endif /* WINDOW_H_ */[/syntax]<br /><br />window.c:<br />[syntax=c]#include &quot;window.h&quot;<br />#include &quot;fonts/font.h&quot;<br />#include &quot;ILI9325.h&quot;<br /><br />window_type window&#91;5&#93; = {<br />{{10, 10, &quot;EKRAN A&quot;, arial16font},<br />{10, 10, &quot;EKRAN B&quot;, arial16font},<br />{10, 10, &quot;EKRAN C&quot;, arial16font},<br />{10, 10, &quot;EKRAN D&quot;, arial16font},<br />{10, 10, &quot;EKRAN E&quot;, arial16font}}<br />};[/syntax]<br /><br />Tylko problem w tym że jakkolwiek nie próbował bym dodawać elementów do tablicy window(np. tak jak wyżej) to pluje masą błędów... Napewno to jakiś głupi błąd... Z góry dziękuje za pomoc.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=8721">resonator</a> — 9 lip 2016, o 21:57</p><hr />
]]></content>
</entry>
</feed>