Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

delete operation in lcd

Status
Not open for further replies.

ajas81

Newbie level 3
Joined
Mar 1, 2011
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,302
dear friend
shall u help me
i want to know how can delete one address in lcd.(for example i entered 34 45 56 49 these numbers are in same line how can i delete 49 ) what is the command for that.
thank u
 

friend i could not understand please explain it .
 

for example, using a PC1602-J LCD display I have a function that will move the cursor to a specified line and character
Code:
// move to line (1 or 2) at position >= 1
void lcdCursor(unsigned char line,unsigned char position)
{
   switch (line)
	{
	  case 1:lcdCmd (0x80 + position -1 ); break;
	  case 2:lcdCmd (0xc0 + position -1 ); break;
	  default : break;
  	}
  lcd_delay();
}

then a function to write a string at that position
Code:
void lcdStringAtCursor(unsigned char *string)
{

	while (*string)
	  lcdPutchar(*string++);
}
so I could do something like this to overwrite the character on line 1 character position 5
Code:
    lcdCursor(1,5);
    lcdStringAtCursor(" ");
 
  • Like
Reactions: ajas81

    ajas81

    Points: 2
    Helpful Answer Positive Rating
thank u so much friend i will try it.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top