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

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2015-05-05T16:31:28+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=12&amp;t=11590&amp;mode</id>
<entry>
<author><name><![CDATA[Jacek]]></name></author>
<updated>2015-05-05T16:31:28+01:00</updated>
<published>2015-05-05T16:31:28+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=11590&amp;p=128333#p128333</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=11590&amp;p=128333#p128333"/>
<title type="html"><![CDATA[Re: scrollowanie obrazka lewo, prawo]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=11590&amp;p=128333#p128333"><![CDATA[
Witam - Bartek........................ już nic nie pisze bo nie wiem co napisać chyba zamówię u ciebie kurs Bascoma online.<br />pozdrawiam Jacek.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=193">Jacek</a> — 5 maja 2015, o 16:31</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[pikczu]]></name></author>
<updated>2015-05-05T11:50:50+01:00</updated>
<published>2015-05-05T11:50:50+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=11590&amp;p=128310#p128310</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=11590&amp;p=128310#p128310"/>
<title type="html"><![CDATA[Re: scrollowanie obrazka lewo, prawo]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=11590&amp;p=128310#p128310"><![CDATA[
U nas przerwa Majowa już się skończyła ale od Soboty mam 38.5 więc siedzę w domu i zdycham.<br />Przeanalizuje twój kod bo fajnie to wyszło.<br />Nie myślałeś nad zrobieniem wersji pionowej ?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=154">pikczu</a> — 5 maja 2015, o 11:50</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[pikczu]]></name></author>
<updated>2015-05-05T08:23:18+01:00</updated>
<published>2015-05-05T08:23:18+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=11590&amp;p=128294#p128294</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=11590&amp;p=128294#p128294"/>
<title type="html"><![CDATA[Re: scrollowanie obrazka lewo, prawo]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=11590&amp;p=128294#p128294"><![CDATA[
To ja chyba usunę swoje wypociny bo aż mi się wstyd zrobiło <img src="https://forum.atnel.pl/images/smilies/icon_redface.gif" alt=":oops:" title="Zawstydzony" />  <img src="https://forum.atnel.pl/images/smilies/icon_redface.gif" alt=":oops:" title="Zawstydzony" /> <br />Bartek skrobnąłeś to wczoraj na poczekaniu ?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=154">pikczu</a> — 5 maja 2015, o 08:23</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Jacek]]></name></author>
<updated>2015-05-04T21:27:14+01:00</updated>
<published>2015-05-04T21:27:14+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=11590&amp;p=128279#p128279</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=11590&amp;p=128279#p128279"/>
<title type="html"><![CDATA[Re: scrollowanie obrazka lewo, prawo]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=11590&amp;p=128279#p128279"><![CDATA[
Ano Bartku hi - muszę uspokoić  <img src="https://forum.atnel.pl/images/smilies/icon_redface.gif" alt=":oops:" title="Zawstydzony" /> podzielę zmienną przez 10 i zobaczymy.<br /><br /><br />obiecany filmik <a href="https://www.youtube.com/watch?v=dwl0fA41Ixw&amp;feature=youtu.be"  class="postlink">https://www.youtube.com/watch?v=dwl0fA41Ixw&amp;feature=youtu.be</a><br />pozdrawiam Jacek.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=193">Jacek</a> — 4 maja 2015, o 21:27</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Jacek]]></name></author>
<updated>2015-05-04T21:17:52+01:00</updated>
<published>2015-05-04T21:17:52+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=11590&amp;p=128276#p128276</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=11590&amp;p=128276#p128276"/>
<title type="html"><![CDATA[Re: scrollowanie obrazka lewo, prawo]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=11590&amp;p=128276#p128276"><![CDATA[
Witam Kolegów - o to właśnie mi chodziło - na wstępie zapominałem napisać jak ma się zachowywać &quot;skala&quot; i do czego ma służyć - przepraszam powinienem napisać to na początku - a więc - przesuwanie skali ma służyć do wizualizacji obracania się azymutu - kiedyś próbowałem już nieudolnie <a href="https://www.youtube.com/watch?v=xHYEiM0gnIw"  class="postlink">https://www.youtube.com/watch?v=xHYEiM0gnIw</a> - buduje napęd rotora antenowego <a href="https://www.youtube.com/watch?v=hVxBKoqyXAg"  class="postlink">https://www.youtube.com/watch?v=hVxBKoqyXAg</a> - mam podłączony enkoder 720imp/obr i skala kręci się za szybko - jak prześle filmik na YT to wstawię linka - jeszcze raz dzięki za fajną skale - pozdrawiam Jacek.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=193">Jacek</a> — 4 maja 2015, o 21:17</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[pikczu]]></name></author>
<updated>2015-05-04T12:28:26+01:00</updated>
<published>2015-05-04T12:28:26+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=11590&amp;p=128195#p128195</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=11590&amp;p=128195#p128195"/>
<title type="html"><![CDATA[Re: scrollowanie obrazka lewo, prawo]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=11590&amp;p=128195#p128195"><![CDATA[
Zobacz na to nie jest to do końca co chciałem zrobić ale mniej więcej działa:[syntax=basic4gl]$regfile = &quot;m2560def.dat&quot;<br />$crystal = 16000000<br />$baud = 19200<br />$hwstack = 200<br />$swstack = 200<br />$framesize = 125<br /><br /><br /><br />'$sim<br />'$regfile = &quot;m32def.dat&quot;                                     'mikrokontroler<br />'$crystal = 16000000                                         'kwarc<br />'$hwstack = 64<br />'$swstack = 32<br />'$framesize = 64<br />'$baud = 19200<br />$lib &quot;glcd.lib&quot;<br /><br />'------------------------------------<br />'konfiguracja LCD<br />'------------------------------------<br />'Config Graphlcd = 240 * 128 , Dataport = Porta , Controlport = Portc , Ce = 5 , Cd = 6 , Wr = 3 , Rd = 4 , Reset = 7 , Fs = 2 , Mode = 6<br />'-------------------------------------------<br />'-----------------------------------moje podlaczenie (Pawel)----------------------------------------------------------------------------<br />Config Graphlcd = 240 * 128 , Dataport = Porta , Controlport = Portc , Ce = 3 , Cd = 0 , Wr = 2 , Rd = 1 , Reset = 4 , Fs = 5 , Mode = 6<br />Cursor Off<br />Declare Sub Lcdtext(byval S As String , Byval Xoffset As Byte , Byval Yoffset As Byte , Byval Fontset As Byte , Byval Inverse As Byte , Byval Rotation As Byte)<br /><br /><br /><br />'Config Portb.7 = Input<br />'Portb = &amp;B11111111<br />'Set Portb.7<br />'Config Portb.6 = Input<br />'Set Portb.6<br />'Portb = &amp;B11111111<br />'Config Portd.6 = Output<br />'Reset Portd.6<br />'Config Portd.2 = Input<br />'Set Portd.2<br />'Config Portd.3 = Input<br />'Set Portd.3<br />Dim Licz_4ms As Byte<br />Dim I As Long<br />Dim E As Word                                               'zmienna odczytu z enkodera lewy wskaznik<br />Dim F As Long<br />Dim B As Long<br /><br />Up Alias Pinb.7<br />Down Alias Pinb.6<br />Beep_ Alias Portd.6<br /><br /><br /><br />I = 0<br /><br /><br />Cursor Off<br />Cls<br />'-------------------------------------------------<br />Do<br />   Incr I<br />   Waitms 300<br />   Print I<br /><br />   If I =&gt; 240 Then<br />      I = 0<br />   End If<br />   B = I Mod 3<br /><br />   If B = 0 Then<br /><br />    Lcdtext &quot;^|^|^|^|^|^|^|^|^|^|^|^|^|^|^|^|^|^|^  &quot; , 0 , 0 , 1 , 0 , 0<br />   End If<br />   If B = 1 Then<br />    Lcdtext &quot;|^|^|^|^|^|^|^|^|^|^|^|^|^|^|^|^|^|^   &quot; , 2 , 0 , 1 , 0 , 0<br />   End If<br />   If B = 2 Then<br />    Lcdtext &quot;|^|^|^|^|^|^|^|^|^|^|^|^|^|^|^|^|^|^|   &quot; , 4 , 0 , 1 , 0 , 0<br />   End If<br /><br />   'Lcdtext &quot;1234567890123456789012345678901234567890&quot; , 0 , 0 , 1 , 1 , 0<br /><br />   'X offser --------------------------------------------^   ^   ^   ^   ^<br />   'Y offser ------------------------------------------------'   |   |   |<br />   'font---------------------------------------------------------'   |   |<br />   'Invert-----------------------------------------------------------'   |<br />   'rotate---------------------------------------------------------------'<br /><br /><br />   Locate 5 , 1 : Lcd ; I<br />   Locate 6 , 1 : Lcd ; B<br /><br />Loop<br />End<br /><br /><br />'-----------------------------------------------------<br /><br />'---------------------------------------------------<br />Sub Lcdtext(byval S As String , Byval Xoffset As Byte , Byval Yoffset As Byte , Byval Fontset As Byte , Byval Inverse As Byte , Byval Rotation As Byte)<br />   Local Tempstring As String * 1 , Temp As Byte            'Dim local the variables<br />   Local A As Byte , Pixels As Byte , Count As Byte , Carcount As Byte , Lus As Byte<br />   Local Row As Byte , Byteseach As Byte , Blocksize As Byte , Dummy As Byte<br />   Local Colums As Byte , Columcount As Byte , Rowcount As Byte , Stringsize As Byte<br />   Local Xpos As Byte , Ypos As Byte , Pixel As Byte , Pixelcount As Byte<br />   If Inverse &gt; 1 Then Inverse = 0                          'Inverse can't be greater then 1<br />   If Rotation &gt; 3 Then Rotation = 0                        'There are only 4 rotation's<br />   Stringsize = Len(s) - 1                                  'Size of the text string -1 because we must start with 0<br />   For Carcount = 0 To Stringsize                           'Loop for the numbers of caracters that must be displayed<br />      'this is the name that you gave to the font, NOT the filename<br />      If Fontset = 1 Then Restore Font6x8                   'If you Read_485_calc nt know the name, open the font file in wordpad, and there it is,<br />      'right on top.<br />      Temp = Carcount + 1                                   'Cut the text string in seperate caracters<br />      Tempstring = Mid(s , Temp , 1)<br />      Read Row : Read Byteseach : Read Blocksize : Read Dummy       'Read the first 4 bytes from the font file<br />      Temp = Asc(tempstring) - 32                           'Font files start with caracter 32<br />      For Lus = 1 To Temp                                   'Read_485_calc  dummie read to point to the correct line in the fontfile<br />         For Count = 1 To Blocksize<br />            Read Pixels<br />         Next Count<br />      Next Lus<br />      Colums = Blocksize / Row                              'Calculate the numbers of colums<br />      Row = Row * 8                                         'Row is always 8 pixels high = 1 byte, so working with row in steps of 8.<br />      Row = Row - 1                                         'Want to start with row=0 instead of 1<br />      Colums = Colums - 1                                   'Same for the colums<br />      Select Case Rotation<br />         Case 0                                             '0 degrees rotation<br />            For Rowcount = 0 To Row Step 8                  'Loop for numbers of rows<br />               A = Rowcount + Yoffset<br />               For Columcount = 0 To Colums                 'Loop for numbers of Colums<br />                  Read Pixels : If Inverse = 1 Then Toggle Pixels       'Read the byte from the file and if inverse = true then invert de byte<br />                  Xpos = Columcount                         '  some calculation to get the caracter on the correct Xposition<br />                  Temp = Carcount * Byteseach<br />                  Xpos = Xpos + Temp<br />                  Xpos = Xpos + Xoffset<br />                  For Pixelcount = 0 To 7                   'Loop for 8 pixels to be set or not<br />                     Ypos = A + Pixelcount                  'Each pixel on his own spot<br />                     Pixel = Pixels.0                       'Set the pixel (or not)<br />                     Pset Xpos , Ypos , Pixel               'Finaly we can set the pixel<br />                     Shift Pixels , Right                   'Shift the byte 1 bit to the right so the next pixel comes availible<br />                     Incr Pixel<br />                  Next<br />               Next Columcount<br />            Next Rowcount<br />            'Case 1                                             '90 degrees rotation<br />            'For Rowcount = Row To 0 Step -8                 'Loop is now counting Read_485_calc wn<br />            ' A = Rowcount + Xoffset<br />            ' A = A - 15                                   'Correction to set Xpos on Xoffset with rotation<br />            ' For Columcount = 0 To Colums<br />            'Read Pixels : If Inverse = 1 Then Toggle Pixels<br />            ' Xpos = Columcount<br />            'Temp = Carcount * Byteseach<br />            'Xpos = Xpos + Temp<br />            'Xpos = Xpos + Yoffset                     'We want that Xoffset is still Xoffset, so we need here the change from x to y<br />            'For Pixelcount = 7 To 0 Step -1<br />            'Ypos = A + Pixelcount<br />            ' Pixel = Pixels.0<br />            'Pset Ypos , Xpos , Pixel<br />            'Shift Pixels , Right<br />            ' Incr Pixel<br />            'Next<br />            'Next Columcount<br />            'Next Rowcount<br />            'Case 2                                             '180 degrees rotation<br />            'For Rowcount = Row To 0 Step -8<br />            'A = Rowcount + Yoffset<br />            ' A = A - 7                                    'Correction to set Xpos on Xoffset with rotation<br />            'For Columcount = Colums To 0 Step -1<br />            'Read Pixels : If Inverse = 1 Then Toggle Pixels<br />            'Xpos = Columcount<br />            'Temp = Carcount * Byteseach<br />            'Xpos = Xpos - Temp<br />            'Xpos = Xpos - 8                           'Correction to set Xpos on Xoffset with rotation<br />            'Xpos = Xpos + Xoffset<br />            'For Pixelcount = 7 To 0 Step -1<br />            'Ypos = A + Pixelcount<br />            'Pixel = Pixels.0<br />            'Pset Xpos , Ypos , Pixel<br />            'Shift Pixels , Right<br />            'Incr Pixel<br />            ' Next<br />            'Next Columcount<br />            'Next Rowcount<br />            'Case 3                                             '270 degrees rotation<br />            ' For Rowcount = 0 To Row Step 8<br />            'A = Rowcount + Xoffset<br />            'For Columcount = Colums To 0 Step -1<br />            'Read Pixels : If Inverse = 1 Then Toggle Pixels<br />            ' Xpos = Columcount<br />            'Temp = Carcount * Byteseach<br />            'Xpos = Xpos - Temp<br />            'Xpos = Xpos - 8                           'Correction to set Xpos on Xoffset with rotation<br />            'Xpos = Xpos + Yoffset<br />            'For Pixelcount = 0 To 7<br />            'Ypos = A + Pixelcount<br />            'Pixel = Pixels.0<br />            'Pset Ypos , Xpos , Pixel<br />            ' Shift Pixels , Right<br />            'Incr Pixel<br />            'Next<br />            'Next Columcount<br />            'Next Rowcount<br />      End Select<br />   Next Carcount<br />End Sub<br /><br /><br /><br />Skala1:<br />   $bgf &quot;skala1.bgf&quot;<br /><br />   $include &quot;Font6x8.font&quot;[/syntax]<br />PS ściąg gdzieś plik font 6x8 bo nie mogę go dołączyć<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=154">pikczu</a> — 4 maja 2015, o 12:28</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[pikczu]]></name></author>
<updated>2015-05-04T09:04:03+01:00</updated>
<published>2015-05-04T09:04:03+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=11590&amp;p=128174#p128174</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=11590&amp;p=128174#p128174"/>
<title type="html"><![CDATA[Re: scrollowanie obrazka lewo, prawo]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=11590&amp;p=128174#p128174"><![CDATA[
Dokładnie nad tym samym siedzę właśnie go konwertowałem enigmą.<br />Ale to nie wszystko Help pisze iż<div class="quotetitle"><b>Quote:</b></div><div class="quotecontent"><br />The X and Y parameters specify where the picture must be displayed. X and Y must be 0 or a multiple of 8. The picture height and width must also be a multiple of 8<br /></div><br />wiec ten numer może nie przejsc tak czy tak.<br />---------------------------edit  jakiś czas później ------------------------------------<br />Teraz będe gdybał ale może coś z tego wyjdzie gdy by zrobić 3 różne pliki tej grafii: <br />ale przesunięte w fazie <br />^|^|^|^|^|^|^|^|^|^|^|^|^|^|^|^|^. plik 1 <br />*^|^|^|^|^|^|^|^|^|^|^|^|^|^|^|^|^.plik 2 <br />**^|^|^|^|^|^|^|^|^|^|^|^|^|^|^|^|^|^|^|. plik 3 <br />I  na przemian je wyświetlać??<br />* to offset<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=154">pikczu</a> — 4 maja 2015, o 09:04</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Jacek]]></name></author>
<updated>2015-05-03T23:11:47+01:00</updated>
<published>2015-05-03T23:11:47+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=11590&amp;p=128164#p128164</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=11590&amp;p=128164#p128164"/>
<title type="html"><![CDATA[scrollowanie obrazka lewo, prawo]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=11590&amp;p=128164#p128164"><![CDATA[
Witam - mam taki problem chciał bym przesuwać obrazek lewo, prawo po jednym pikslu -ale mi nie wychodzi  <img src="https://forum.atnel.pl/images/smilies/icon_e_sad.gif" alt=":(" title="Smutny" /> <br />obrazek przesuwa się ale skokowo - i obniża się o jeden piksel<br /><br />[syntax=basic4gl]$regfile = &quot;m32def.dat&quot;                                     'mikrokontroler<br />$crystal = 16000000                                         'kwarc<br />'$sim<br />'$baud = 19200<br />$hwstack = 64<br />$swstack = 32<br />$framesize = 64<br />$lib &quot;glcd.lib&quot;<br /><br /><br />'------------------------------------<br />'konfiguracja LCD<br />'------------------------------------<br />Config Graphlcd = 240 * 128 , Dataport = Porta , Controlport = Portc , Ce = 5 , Cd = 6 , Wr = 3 , Rd = 4 , Reset = 7 , Fs = 2 , Mode = 6<br /><br />'-------------------------------------------<br />Config Portb.7 = Input<br />'Portb = &amp;B11111111<br />Set Portb.7<br />Config Portb.6 = Input<br />Set Portb.6<br />'Portb = &amp;B11111111<br />Config Portd.6 = Output<br />Reset Portd.6<br />Config Portd.2 = Input<br />Set Portd.2<br />Config Portd.3 = Input<br />Set Portd.3<br /><br />Dim Licz_4ms As Byte<br />Dim I As Long<br />Dim E As Word                                               'zmienna odczytu z enkodera lewy wskaźnik<br />Dim F As Long<br />Dim B As Long<br /><br /><br /><br />Up Alias Pinb.7<br />Down Alias Pinb.6<br />Beep_ Alias Portd.6<br /><br /><br /><br /><br />'--------------------------<br />' włączenie timer'ów<br />'------------------------<br />Enable Interrupts<br />Enable Timer0<br />Load Timer0 = 250<br />'Enable Timer1<br />'Load Timer1 = 125<br />'-------------------------------<br />Config Int0 = Falling<br />   On Int0 Enkoder<br />Enable Interrupts<br />   Enable Int0<br />'------------------------------<br />I = 0<br /><br /><br /><br /><br />Cursor Off<br /><br />Cls<br /><br />'-------------------------------------------------<br /><br />Do<br /><br />I = E / 2<br />If I =&gt; 240 Then<br />   I = 0<br />  End If<br /><br /><br />Showpic I , 0 , Skala1<br /><br /><br /><br />Locate 5 , 1 : Lcd ; I ; &quot;   I &quot;<br /><br /><br /><br /><br />Loop<br />End<br /><br /> '----------------------------------------------------------<br />Odmierz_1s:<br /><br />Load Timer0 = 250<br />Incr Licz_4ms<br />If Licz_4ms = 25 Then<br />Licz_4ms = 0<br />End If<br />Return<br /><br /><br />'-----------------------------------------------------<br />Enkoder:<br />Disable Int0<br />'Waitms 1<br />If Pind.2 = 0 Then<br />   If Pind.3 = 0 Then<br />   Incr E<br />   Decr F<br />   Else<br />   Decr E<br />   Incr F<br />   End If<br />End If<br />Enable Int0<br />Return<br /><br />'---------------------------------------------------<br /><br />Skala1:<br />$bgf &quot;skala1.bgf&quot;[/syntax]<br /><br />wyświetlacz graficzny na sterowniku T6963C 240x128<br />czy jest na to jakieś lekarstwo w Bascom'ie?<br />pozdrawiam Jacek.<br /><br /><br />proszę o pomoc.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=193">Jacek</a> — 3 maja 2015, o 23:11</p><hr />
]]></content>
</entry>
</feed>