GLCD Line Erase

Post your requests and ideas on the future development of mikroPascal.
Post Reply
Author
Message
MattH
Posts: 173
Joined: 09 Jan 2005 03:55
Location: Allentown,PA

GLCD Line Erase

#1 Post by MattH » 13 Feb 2005 22:17

It would be nice to have a GLCD_Line_Erase(x,y) function available.
Because you're using the DOT function anyway and providing a GLCD_Clear_Dot function, this should be a piece of cake to do.
Matt

Added:

Code: Select all

void GLCD_SET_DOT(x,y,color) {
	GLCD_data;
	GLCD_Goto_XY(x, y-y%8);			/* calculate page position*/
	data = GLCD_Read_Data();
	if(color == BLACK) {                    /* check color */
		data |= 0x01 << (y%8);          /* prepare for print dot */
	} else {
		data &= ~(0x01 << (y%8));       /* prepare for clear dot */
	}
	GLCD_Write_Data(data);                  /* write data to GLCD
}
This would be even better.
Don't code after midnight...

User avatar
zristic
mikroElektronika team
Posts: 6608
Joined: 03 Aug 2004 12:59
Contact:

Re: GLCD Line Erase

#2 Post by zristic » 14 Feb 2005 10:17

The GLCD library shipped with mikroC is a completely new one. It is optimized, fast and has the option of choosing the color of your drawings (0 clear, 1 set, 2 invert). Therefore, you can use glcd_line routine to clear your line if you pass it with the parameter 0.

The new library will be included with mikroPascal/mikroBasic new release which is coming in a couple of days.

MattH
Posts: 173
Joined: 09 Jan 2005 03:55
Location: Allentown,PA

#3 Post by MattH » 14 Feb 2005 12:36

Fantastic... Thanks
Don't code after midnight...

LGR
Posts: 3204
Joined: 23 Sep 2004 20:07

Re: GLCD Line Erase

#4 Post by LGR » 14 Feb 2005 19:26

zristic wrote:The GLCD library shipped with mikroC is a completely new one. The new library will be included with mikroPascal/mikroBasic new release which is coming in a couple of days.
Several people have expressed interest in T6963c. Several of us also have pieces of T6963C routines. Between the currently supported KS0107/08 and T6963c, you would be able to support about 80% of the controller-equipped GLCDs available (if you added the Epson SED series you hould have 95%). Is T6963C support in the near-term plans, or should we try to coordinate a project?

User avatar
zristic
mikroElektronika team
Posts: 6608
Joined: 03 Aug 2004 12:59
Contact:

Re: GLCD Line Erase

#5 Post by zristic » 14 Feb 2005 20:55

LGR wrote:...or should we try to coordinate a project?
I would encourage you to do so, since we are busy with compiler making. It is important that you have all means to do so. Of course, at the moment when troubles appear I expect you to tell us.

Post Reply

Return to “mikroPascal Wish List”