GLCD Write Char / Text Function on X,Y coords

Post your requests and ideas on the future development of mikroPascal PRO for AVR.
Post Reply
Author
Message
LJStefan
Posts: 90
Joined: 17 Feb 2006 16:47
Location: Austria

GLCD Write Char / Text Function on X,Y coords

#1 Post by LJStefan » 12 Apr 2009 12:16

Hello Mikroe-Team.

A function to write on x and y coordinates on the GLCD would be nice...
(not only in the 8 lines)

for write char and write text.

Thanks in Advance and best regards,
Stefan

Deepak
Posts: 55
Joined: 08 Jan 2009 06:00
Location: India

#2 Post by Deepak » 08 Jun 2009 13:21

Hello Stefan,

I know I'm already late to reply but want to share my experience with GLCD. From what I know any X coordinate can be accessed but only 8 'pages' of Y can b accessed. To satisfy your need you will have to create custom fonts. Here is a custom 'R' font example:

Code: Select all

/* Custom 'R' chracter */
unsigned int array_R1[]={0xFF,0xFF,0xFF,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0x07,0xFF,0xFE,0xFC,
                           0xFF,0xFF,0xFF,0x1E,0x3E,0x7E,0xFE,0xEE,0xCE,0x8E,0x0E,0x0E,0x0F,0x07,0x03,
                           0x1F,0x1F,0x1F,0x00,0x00,0x00,0x00,0x01,0x03,0x07,0x0F,0x1E,0x1C,0x18,0x10};

/* Function to display 'R' */
 x=0;
 z=0;
 y=z;
 for(i=0;i<15;i++)
 {
  data= (array_R2[i]>>16)&0x000000FF;
  GLCD_Pixel(x,y,data);
  y++;
  data= (array_R2[i]>>8)&0x000000FF;
  GLCD_Pixel(x,y,data);
  y++;
  data = array_R2[i]&0x000000FF;
  GLCD_Pixel(x,y,data);
  x++;
  y=z;
 }
All the best.

Regards,
Deepak.

Post Reply

Return to “mikroPascal PRO for AVR Wish List”