LCDInfo.com

http://www.lcdinfo.com
It is currently Fri Nov 22, 2024 10:19

All times are UTC + 2 hours




Post new topic Reply to topic  [ 163 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7, 8, 9 ... 11  Next
Author Message
 Post subject:
PostPosted: Wed Feb 26, 2003 1:09 
Offline

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

Quote:
Public Sub sbrDrawLCDHex(ByVal pvstrPoints() As String)


Array string must be ByRef

Greetings Emil


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 26, 2003 1:46 
Offline

Joined: Fri Feb 07, 2003 16:37
Posts: 60
Location: SaNT QUiRZe, ||*|| CaTaLoNiA ||*||
No because i don't write the results in this matrix.

Thanks

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


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 26, 2003 13:37 
Offline

Joined: Sun May 05, 2002 22:05
Posts: 2063
Location: Lappeenranta, Finland
Marc wrote:
But then, how i can do this ¿? If I have "FF" value this can't be represented only with 6 bits !!??

Currently you have your array size at 3840 (128*30) ? Now you need to make array that is 128*40 = 5120 and then save only 6 bits per byte.
I guess you are currently reading 8 bits one by one from the bitmap and then saving the byte to the array ? Now you need to read only 6 bits at a time and leave the 2 bits empty. I hope I've understood right how you are doing it now.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 26, 2003 14:31 
Offline

Joined: Fri Feb 07, 2003 16:37
Posts: 60
Location: SaNT QUiRZe, ||*|| CaTaLoNiA ||*||
Exactly, now i have a 3840 (128 * 30) array. Ok i will try with the 5120 bytes array, with 6 bits, per byte. Later i will comment the result.

Thanks

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


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 26, 2003 23:27 
Offline

Joined: Fri Feb 07, 2003 16:37
Posts: 60
Location: SaNT QUiRZe, ||*|| CaTaLoNiA ||*||
:? :? :?

Well, Henri, with an array of 5120, my display it's equal than with the 3840 array, 8O 8O 8O 8O 8O .

Well, I create a matrix of 5120 with a BMP, with the FAST LCD Designer (first i convert it to a file of hexadecimal values, and then i fill the matrix).

With the matrix that i have created, I use this function to fill the LCD:

Code:
    Public Sub sbrDrawLCDHex(ByVal pvstrPoints() As String)
        Dim shtAdreça As Short
        Dim shtcont As Short

        shtAdreça = G_BASE '+ (0 * BYTES_PER_ROW) + (0 / 6)
        WriteData(shtAdreça And &HFF)
        WriteData(RShiftLong(shtAdreça, 8))
        WriteCtrl(&H24)
        For shtcont = 1 To UBound(pvstrPoints)
            'WriteData(CInt("&H" & pvstrPoints(shtcont)))
            WriteData(CInt(pvstrPoints(shtcont)))
            WriteCtrl(&HC0)
        Next
    End Sub



Do you know where is the problem ¿?

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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 27, 2003 13:23 
Offline

Joined: Sun May 05, 2002 22:05
Posts: 2063
Location: Lappeenranta, Finland
Does the Fast LCD Designer save the data in 6 bits per byte format ?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 27, 2003 15:20 
Offline

Joined: Fri Feb 07, 2003 16:37
Posts: 60
Location: SaNT QUiRZe, ||*|| CaTaLoNiA ||*||
When you save the bitmap in a BAS archive, you can put 6x8 or 8x8.

I supose that if i put 6x8, the lcd designer will save the file with 6 bits, is it ¿?

Well, we supose that the file is in 6 bits per Byte. My display doesn't work properly too... :? :? :? :? I'm so desanimated ! ...

Thanks

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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 27, 2003 21:40 
Offline

Joined: Sun May 05, 2002 22:05
Posts: 2063
Location: Lappeenranta, Finland
Did you save it as "Image" or "Image array" in the Fast LCD Designer ? I just did some testing and first tried to save as array but got some strange results. Then I saved as 6 bit Image and the file looked like it could be ok.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 27, 2003 22:04 
Offline

Joined: Fri Feb 07, 2003 16:37
Posts: 60
Location: SaNT QUiRZe, ||*|| CaTaLoNiA ||*||
Yes, I save the file like Image, and with a 6X8, and the result is the same. Two posts ago i put the code that i use to display the bimpat, could be the problem there ¿?

It's very frustating ! 8O 8O 8O 8O

Thanks

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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 27, 2003 22:11 
Offline

Joined: Sun May 05, 2002 22:05
Posts: 2063
Location: Lappeenranta, Finland
I had a look at the code but didn't notice anything special. But as I know nothing about VB I might not even notice if there was some problem.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 27, 2003 23:19 
Offline

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

I have written a new routine for Drawing Bitmap please check it..
It's work for me whit no problem

(Ok it's for SED1330)

Cancel
It's recoment you set the Picture.Scalemode=3
I use it with fellow comand
Code:
LCD1330.DrawGraph Picture2, 0, 0, 240, 128



LCD1330 is the Name of my Class "ignore it"

Greetings Emil :)


Last edited by Emil Weiss on Sat Jul 26, 2003 0:05, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 27, 2003 23:34 
Offline

Joined: Fri Feb 07, 2003 16:37
Posts: 60
Location: SaNT QUiRZe, ||*|| CaTaLoNiA ||*||
Thanks for the function, I will try it :D :D :D :D

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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 27, 2003 23:58 
Offline

Joined: Fri Feb 21, 2003 5:41
Posts: 43
HI Marc

It's High recoment you set the Background from the picturebox to *** white ***
otherwise you get pixel error in indicate!!!!!

Greetings Emil


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 03, 2003 19:04 
Hi Marc

Work your projekt now?
i have found a Problem in my routine

Greetings Emil


Top
  
 
 Post subject:
PostPosted: Tue Mar 04, 2003 2:00 
Offline

Joined: Fri Feb 07, 2003 16:37
Posts: 60
Location: SaNT QUiRZe, ||*|| CaTaLoNiA ||*||
No I can't tried your function.

What function don't run ?

bye

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


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

All times are UTC + 2 hours


Who is online

Users browsing this forum: No registered users and 43 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:  
Powered by phpBB® Forum Software © phpBB Group