LCDInfo.com

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

All times are UTC + 2 hours




Post new topic Reply to topic  [ 163 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 11  Next
Author Message
 Post subject:
PostPosted: Sun Feb 23, 2003 14:08 
Offline

Joined: Fri Feb 07, 2003 16:37
Posts: 60
Location: SaNT QUiRZe, ||*|| CaTaLoNiA ||*||
Ok, now i have a BMP in TXT file with hexadecimal values.

But now, what i want, is to DISPLAY to LCD this TXT File, what do you do this ? What do you do to DISPLAY Hexadecimal values in the LCD !?¿?!¿?!¿?

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


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 23, 2003 17:00 
Offline

Joined: Fri Feb 07, 2003 16:37
Posts: 60
Location: SaNT QUiRZe, ||*|| CaTaLoNiA ||*||
Are anyone here ¿?¿? :roll: :roll: :roll: :roll:

I need your help please. :wink:

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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 24, 2003 15:45 
Offline

Joined: Sun May 05, 2002 22:05
Posts: 2063
Location: Lappeenranta, Finland
Is it just me or wasn't here more posts yesterday ?

edit:
Just noticed that Emil has deleted all his posts in this thread. So I guess there's no need to retrieve the missing posts from backups :wink:


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 25, 2003 0:06 
Offline

Joined: Fri Feb 07, 2003 16:37
Posts: 60
Location: SaNT QUiRZe, ||*|| CaTaLoNiA ||*||
Buff, there are something that don't run ...

When I clear the LCD, or when I draw bitmaps, there are some pixels that doesn't paint. It's like the functions doesn't be good, or something else, but i'm cracking up !

I want if someone has or had the same problem and have solutiones, how can solve this !!??

Thanks.

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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 25, 2003 0:15 
Offline

Joined: Sun May 05, 2002 22:05
Posts: 2063
Location: Lappeenranta, Finland
Marc wrote:
When I clear the LCD, or when I draw bitmaps, there are some pixels that doesn't paint.

Are you using busy flag checking ? Or maybe you could try a delay instead of that.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 25, 2003 0:18 
Offline

Joined: Fri Feb 07, 2003 16:37
Posts: 60
Location: SaNT QUiRZe, ||*|| CaTaLoNiA ||*||
I use the functions that you posted here, i think that doesn't use any delay.

Example:
Code:
Public Sub ClearLCDGraph()
        Dim shtCont As Short

        WriteData(G_BASE And &HFF)
        WriteData(RShiftLong(G_BASE, 8))
        WriteCtrl(&H24) 'address pointer to G_BASE

        For shtCont = 1 To NUM_PIXELS
            WriteData(0)
            WriteCtrl(&HC0) 'write data and inc ptr
        Next
    End Sub


Other example:
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)))
            WriteCtrl(&HC0)
        Next
    End Sub

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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 25, 2003 7:31 
Offline

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

Cancel

Greetings Emil


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

Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 25, 2003 9:17 
Offline

Joined: Sun May 05, 2002 22:05
Posts: 2063
Location: Lappeenranta, Finland
Marc wrote:
I use the functions that you posted here, i think that doesn't use any delay.


The delay and busy flag checking, if used, are in the WriteData() and WriteCommand() functions. Have a look at the first C code I posted to this thread.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 25, 2003 13:12 
Offline

Joined: Fri Feb 07, 2003 16:37
Posts: 60
Location: SaNT QUiRZe, ||*|| CaTaLoNiA ||*||
Hi! The WaitDisplay Function in WriteData and in WriteCommand, i decided not to use it, because doesn't seem to be run with my LCD, it writes worst, and i have the same problem of non drawing pixels (a few).

I think it's problem of adresses, but i'm losted.

Thanks

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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 25, 2003 14:04 
Offline

Joined: Wed Feb 19, 2003 13:37
Posts: 16
Marc wrote:
Hi! The WaitDisplay Function in WriteData and in WriteCommand, i decided not to use it, because doesn't seem to be run with my LCD, it writes worst, and i have the same problem of non drawing pixels (a few).

I think it's problem of adresses, but i'm losted.

Thanks


I can't write SetLCDPixel in two first and two last columm.. and WaitDisplay Function don't work.. result only big negative number, it's loop always.. And PictureBox.Point(x.y) always result maxium long value..
Only WriteLCDText work good..

Sorry bad english text..

_________________
Rengas joka ei vedä, se jarruttaa - Nissan Sunny 1.6 SLX 4x4


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 25, 2003 14:25 
Offline

Joined: Fri Feb 07, 2003 16:37
Posts: 60
Location: SaNT QUiRZe, ||*|| CaTaLoNiA ||*||
The waitdisplay function run properly, with the setpixel there are pixels that doesn't show, but i dont know why ...

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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 25, 2003 20:05 
Offline

Joined: Sun May 05, 2002 22:05
Posts: 2063
Location: Lappeenranta, Finland
Marc wrote:
Hi! The WaitDisplay Function in WriteData and in WriteCommand, i decided not to use it,

You could try putting a delay in place of the WaitDisplayReady().


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 25, 2003 20:36 
Offline

Joined: Fri Feb 07, 2003 16:37
Posts: 60
Location: SaNT QUiRZe, ||*|| CaTaLoNiA ||*||
The waitDisplay function don't make a delay ¿? I think tht this don't seem to be a delay problem, because all are drawn except a few bits. -_-'

I'm being crazy, whats possible that there are pixels that don't draw !!! :? :? :? :? :? . And when i'm trying to display a whole image in Hexadecimal values, it seems that divide the lcd display in two.

Example:

This is the LCD
|------------------------|
|·····cccccc···········ccc|
|·····cccccc···········ccc|
|·····cccccc···········ccc|
|------------------------|

This is the BMP
ccccccc
ccccccc
ccccccc

It's like divide the display, i don't understand anything :evil: :evil:
I hope you understand the draw.

Thanks

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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 25, 2003 23:37 
Offline

Joined: Sun May 05, 2002 22:05
Posts: 2063
Location: Lappeenranta, Finland
Marc wrote:
The waitDisplay function don't make a delay ¿? I think tht this don't seem to be a delay problem, because all are drawn except a few bits. -_-'

How many bits are you trying to write in one byte ? If you have your display set for 6x8 font you need to send 6 bits in one byte.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 25, 2003 23:55 
Offline

Joined: Fri Feb 07, 2003 16:37
Posts: 60
Location: SaNT QUiRZe, ||*|| CaTaLoNiA ||*||
I'm putting 8 bits, but you're right, the font is set to 6x8.

This will be that I've to put only 6 bits, right ?

But then, how i can do this ¿? If I have "FF" value this can't be represented only with 6 bits !!??

Thank you

_________________
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, 2, 3, 4, 5, 6, 7, 8 ... 11  Next

All times are UTC + 2 hours


Who is online

Users browsing this forum: No registered users and 35 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