LCDInfo.com

http://www.lcdinfo.com
It is currently Mon Nov 25, 2024 0:16

All times are UTC + 2 hours




Post new topic Reply to topic  [ 163 posts ]  Go to page Previous  1 ... 6, 7, 8, 9, 10, 11  Next
Author Message
 Post subject:
PostPosted: Wed Aug 13, 2003 1:22 
Offline

Joined: Thu Jul 24, 2003 19:00
Posts: 16
finally got it 8)

thanks for all the help :)

i used the first code not the one of lcd info and it worked


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 21, 2003 17:45 
Offline

Joined: Thu Jul 24, 2003 19:00
Posts: 16
hmm i have a question

i want winamp3 info on my lcd is that possible without a winamp plugin ?

did some research and winamp3 api is gone because they rewrote the entire code normally it should be back in some version but when that will be released... :wink:

i think it is possible but it will be to hard to do


i already got msn 6.0 info on my lcd :o


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 22, 2003 11:57 
Offline

Joined: Sun May 05, 2002 22:05
Posts: 2063
Location: Lappeenranta, Finland
soul wrote:
hmm i have a question

i want winamp3 info on my lcd is that possible without a winamp plugin ?

did some research and winamp3 api is gone because they rewrote the entire code normally it should be back in some version but when that will be released... :wink:

i think it is possible but it will be to hard to do

I don't know other ways than a plugin for winamp3 to get the information. For winamp2 you can get some information without a plugin but I don't remember anything like this for wa3.

Quote:
i already got msn 6.0 info on my lcd :o

Good :)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 04, 2003 6:10 
Offline

Joined: Fri Feb 21, 2003 5:41
Posts: 43
Hi

Quote:
hmm i have a question

i want winamp3 info on my lcd is that possible without a winamp plugin ?


Check this

http://dschi-el-zeh.de/Dateien/Wa2xSendMsg.rar

and this

http://dschi-el-zeh.de/Dateien/Controll%20Winamp3.rar

extract Wa2xSendMsg to winamp3/Wacs and run Controll Winamp3 test the Plugin.
You can now work with the old winamp2x messagen.

Greetings Emil


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 08, 2003 17:39 
Offline

Joined: Thu Jul 24, 2003 19:00
Posts: 16
your second link doesn't work :(


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 08, 2003 19:19 
Offline

Joined: Fri Feb 21, 2003 5:41
Posts: 43
Hi

Quote:
your second link doesn't work


Go to my web scroll to down and load it from here.!

http://dschi-el-zeh.de

Greetings Emil


Top
 Profile  
 
 Post subject: I'm going crazy ...
PostPosted: Mon Oct 20, 2003 23:44 
Offline

Joined: Fri Feb 07, 2003 16:37
Posts: 60
Location: SaNT QUiRZe, ||*|| CaTaLoNiA ||*||
I will try to explain my problem ... it's nefast because I try everything without any result ...

Let's go ...

My display is a T6963C with the PowerLCD wiring ... 240x128 (6x8 or 8x8). LCDInfo, PowerLCD, LiquidMP3 runs well in my LCD ... my problem starts when I try to program it by myself ...

I use all the code that it's in this thread of Visual Basic ...

The problem starts with the SetPixel function ... I do a loop of 0 to 239 to test if the x axis goes well, the result is this:

The loop is this:
0123-----7------456 and continues like this ... discontinued pixels :evil:
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
x ···@@@@·@@@···@@@@@@@@@@@@@@@@@@@@@@@@@@@x
x@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@x
x@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@x

The · are pixels, the @ are blank pixels ...

I hope somebody understand the picture, and can help me, to sovle the problem, cause im very desesperated ...

Thanks

_________________
Nuestra única limitación es la imaginación


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 24, 2003 22:58 
Offline

Joined: Thu Jul 24, 2003 19:00
Posts: 16
The setpixel function doesn't work that well i have tried many things to get it to work but it doesn't seem to go correct

its a problem with the calculation of the positioning for the pixels i think

but you can always make a bmp file from 1 pixel and make a loop to draw the bmp in x axis and y axis on the screen.

the function to draw bmp's on LCD's is on this forum.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 25, 2003 11:48 
Offline

Joined: Fri Feb 07, 2003 16:37
Posts: 60
Location: SaNT QUiRZe, ||*|| CaTaLoNiA ||*||
With that functions can't be possible to display the pixels, but I have found the solution, thanks to Emil. :)

I have recoded a lot of functions. And know works :)

Now i can try the ideas that run on my mind, i will notice the results...

Thanks to all :D

_________________
Nuestra única limitación es la imaginación


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 25, 2003 12:27 
Offline

Joined: Sun May 05, 2002 22:05
Posts: 2063
Location: Lappeenranta, Finland
Hi

Have you found out what the problem with the functions was ? Personally I've used the C functions I posted in the beginning and haven't noticed any problems. But I haven't worked with VB, only C/C++.

But glad to hear that you have found a working solution. :)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 28, 2003 15:27 
Offline

Joined: Fri Feb 21, 2003 5:41
Posts: 43
Marc wrote:
With that functions can't be possible to display the pixels, but I have found the solution, thanks to Emil. :)


Heheh!

one problem you have!

Get and SetPixel is not a fast solution.
Only use GetDIBit ist a alternative.. verry fast for Animation.
Copy your Picture in the Memory and write it to your Display
with a Block of 6x8 or 8x8 Pixel.

Code:
Public Function IDriver_DisplayDrawGraphic(cntrl As Object, xoff As Long, yoff As Long, _
                                            ByVal FontWidth As Integer, ByVal FontHight As Integer, _
                                            ByVal Left As Long, ByVal Top As Long, _
                                            ByVal Width As Long, ByVal Hight As Long)

    Dim b8() As Byte
    Dim b6() As Byte
   
    Dim ret As Long
    Dim intAddr As Integer
    Dim X As Long
    Dim Y As Long
    Dim t As Single
   
    ret = GetByteArray(cntrl.hdc, cntrl.Image, 1, b8())
    ret = Convert8BitTo6Bit(b8(), b6(), DEFAULT_GRAPH_SPALTE)
   
    With DisplayConfig
    For Y = 0 To Hight - 1
   
       
        'set address pointer to beginning of row
        intAddr = .GraphHomeAddress + (((yoff + Y) + Top) * DEFAULT_GRAPH_SPALTE) + ((xoff / DEFAULT_BITS_PER_GRAPH_SPALTE) + Left)
        Call WriteData(intAddr And 255)
        Call WriteData(RShiftLong(intAddr, FontHight))
        Call WriteCtrl(CMD_SET_ADDRESS_POINTER)

        Call WriteCtrl(CMD_SET_DATA_AUTO_WRITE) 'auto write mode on
   
        For X = 0 To DEFAULT_GRAPH_SPALTE - 1
            WriteData b6(X, Y)
        Next X
       
        '//auto write mode off
        Call WriteCtrl(CMD_SET_DATA_AUTO_RESET)
    Next Y
    End With

End Function


Only this Function is hightech for LCDDrawing routine
I use not pixel to pixel (is to slow!!!)

Here is a Sample projekt
http://dschi-el-zeh.de/Dateien/Morphing.rar

NewMethode = 8 Frames per Sec = 2678,01 ms / GetDIBits
OldMethode = 4 Frames per Sec = 5675,65 ms / GetPixels

by loading 20x (240x128) Bitmaps with a loop for Morphing
----------------------------------------------



always 50% Faster as Get/SetPixel

Greetings Emil


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 29, 2003 12:08 
Offline

Joined: Wed Oct 29, 2003 12:05
Posts: 4
Hello,

I'm trying to program my T6963C 240x128 LCD and tried some sample codes from this topic.

My problem is that with the DrawBMP function it takes more than 1 sec. to completely draw the image on my display.

With the Setpixel function my image is completely distorted, but it's much faster...

Any tips what I possibly can do ?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 29, 2003 14:37 
Offline

Joined: Fri Feb 21, 2003 5:41
Posts: 43
Hi

Quote:
With the Setpixel function my image is completely distorted, but it's much faster...

Any tips what I possibly can do ?


Get and SetPixel is not a fast solution.
********************************

Check my Sample
This sample Draw 8 Image with a resolution from 240x128 in 1 Sec..

Send me your source and i can help for you!
Only VB!

Greetings Emil


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 29, 2003 22:18 
Offline

Joined: Wed Oct 29, 2003 12:05
Posts: 4
Hello,

I've now written the following code, and it seems to work seemly well but I've only 1 little problem:
I have 5 pixels between each horizontal image-pixel of the original image.

So @@@ becomes @ @ @

Here's my code:

Code:
Public DisplayBMP(Picture as PictureBox, ByVal x as integer, Byval y as integer)
   Dim Adres as Integer
   Dim LCDwaarde as Long

   for i = 0 to picture.scaleheight
      Adres = G_BASE + ((y + i) * BYTES_PER_ROW) + (x / 6)
      WriteData (Adres and &HFF)
      WriteData (RShiftLong(Adres, 8))
      WriteCtrl (&H24)

      WriteCtrl (&HB0)

      for j = 0 to picture.scalewidth
         if picture.point(j,i) = 0 then
            WriteData(1)
         else 'Puntje = wit of andere kleur
            WriteData(0)
         end if
      next j

      WriteCtrl (&B2)
   next i
End Sub


I think I have to change something to the incrementing of my pointer or something like that...


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 30, 2003 12:14 
Offline

Joined: Fri Feb 21, 2003 5:41
Posts: 43
With this information, unfortunately, I cannot help you


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 163 posts ]  Go to page Previous  1 ... 6, 7, 8, 9, 10, 11  Next

All times are UTC + 2 hours


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group