LCDInfo.com

http://www.lcdinfo.com
It is currently Fri Nov 22, 2024 15:29

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 ... 11  Next
Author Message
 Post subject:
PostPosted: Fri Feb 21, 2003 23:01 
Offline

Joined: Wed Feb 19, 2003 13:37
Posts: 16
I can monday post that function.. My own computer is OULU city and i don't.. Sorry.. I hope at you understand..

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


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 21, 2003 23:07 
Offline

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


Last edited by Emil Weiss on Mon Feb 24, 2003 14:46, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 21, 2003 23:07 
Offline

Joined: Fri Feb 07, 2003 16:37
Posts: 60
Location: SaNT QUiRZe, ||*|| CaTaLoNiA ||*||
I send to you and to Emil a 'mail with the module for Visual Basic.

Anyone can post the function to draw bytes ¿?!

Thanks

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


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 21, 2003 23:10 
Offline

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


Last edited by Emil Weiss on Mon Feb 24, 2003 14:47, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 21, 2003 23:24 
Offline

Joined: Wed Feb 19, 2003 13:37
Posts: 16
Most like:
Code:
'normal address system.. high/lowbyte, x, y, i don't remember

Write_Command(&H24)
Write_Data(data)
Write_Command(&HC0)



I post monday tested source..

Sorry bad english..

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


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 22, 2003 0:11 
Offline

Joined: Fri Feb 07, 2003 16:37
Posts: 60
Location: SaNT QUiRZe, ||*|| CaTaLoNiA ||*||
I have a function that write text to the LCD and another that write pixels giving a position (x,y). Now I need to know hoy you make to draw a whole bitmap with bytes (one byte per pixel).

Anyone could help me again ?? :roll: :roll: :roll:

Thanks.

PS: Emil look in the code that i have passed to you, that the wiring is the same of that you have.

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


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 22, 2003 0:23 
Offline

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


Last edited by Emil Weiss on Mon Feb 24, 2003 14:47, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 22, 2003 1:18 
Offline

Joined: Fri Feb 07, 2003 16:37
Posts: 60
Location: SaNT QUiRZe, ||*|| CaTaLoNiA ||*||
We can't communicate :D :D :D :D

I need a function that draw to the LCD the bytes. The function you post here, only converts pixels into hexadecimal values. I need the function that draw this pixels (in hexadecimal).

Thanks

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


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 22, 2003 1:20 
Offline

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


Last edited by Emil Weiss on Mon Feb 24, 2003 14:47, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 22, 2003 1:25 
Offline

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


Last edited by Emil Weiss on Mon Feb 24, 2003 14:47, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 22, 2003 1:29 
Offline

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

You don't understand me.

I need a function that DRAW !! PAINT !! to LCD.

Do you speak or understand Spanish ¿?

NEcesito una función que dibuje los bytes en el LCD !

Thanks

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


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 22, 2003 11:31 
Offline

Joined: Sun May 05, 2002 22:05
Posts: 2063
Location: Lappeenranta, Finland
Ok, here's one piece of code that writes a bitmap to T6963C. I have translated this from some delphi code last spring so this isn't my work.

Code:
void cT6963C::ShowBMP(Graphics::TBitmap *pBitmap)
{
  int x=0,y=0,z;
  int i;
  int addr;
  float pp;
  TColor p;

  Randomize();

  addr = G_BASE + (y*BYTES_PER_ROW_GFX) + (x/font_width);

  T6963C.WriteData(addr & 0xFF);
  T6963C.WriteData(addr >> 8);
  T6963C.WriteCtrl(0x24);
  for (y=0;y<ypixels;y++)
    for (x=0;x<xpixels/font_width;x++)
    {
      i=0;
      for(z=0;z<font_width;z++)
      {
        p=pBitmap->Canvas->Pixels[x*font_width+z][y];
        pp=0.6*(p & 0xFF)+0.30*((p >> 8) & 0xFF)+0.1*((p >> 16) & 0xFF);
        i=i << 1;
        if (pp<=random(255))
           i=i | 1;
      }
      T6963C.WriteData(i);
      T6963C.WriteCtrl(0xC0);
    }
}


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 22, 2003 14:27 
Offline

Joined: Fri Feb 07, 2003 16:37
Posts: 60
Location: SaNT QUiRZe, ||*|| CaTaLoNiA ||*||
The ypixels and xpixels variables what value have ¿?

240 and 128 respectively ¿?

Thanks

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


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 22, 2003 16:41 
Offline

Joined: Sun May 05, 2002 22:05
Posts: 2063
Location: Lappeenranta, Finland
Marc wrote:
The ypixels and xpixels variables what value have ¿?

240 and 128 respectively ¿?

Thanks

Yes, 240 and 128 for your display.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 22, 2003 19:16 
Offline

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


Last edited by Emil Weiss on Mon Feb 24, 2003 14:48, edited 1 time in total.

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 ... 11  Next

All times are UTC + 2 hours


Who is online

Users browsing this forum: No registered users and 1 guest


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