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.

[SOLVED] LCD Up and Down Text Movement

Status
Not open for further replies.

tahir4awan

Full Member level 4
Full Member level 4
Joined
Nov 29, 2010
Messages
213
Helped
16
Reputation
32
Reaction score
17
Trophy points
1,308
Location
Germany
Activity points
3,116
I have seen many example code for moving text left and right then I saw a video in which text is moving up and down but the MIkroC LCD library functions do not have any command to move text up and down.

Anyone knows the code to move text up and down.
 

tahir

Characters type LCD controlers ( like 16x2, 16x4 ), doesn´t have built-in command to perform that function.
In other hand, Graphic type ones, takes control at bit scale.

The only scrolling possible at charater type LCD is changing the offset line pointer of your text.
However the visual effect doesn´t seems like a movement.

+++
 
Will you helpful like this ?


sbit LCD_RS at RB4_bit;
sbit LCD_EN at RB5_bit;
sbit LCD_D4 at RB0_bit;
sbit LCD_D5 at RB1_bit;
sbit LCD_D6 at RB2_bit;
sbit LCD_D7 at RB3_bit;

sbit LCD_RS_Direction at TRISB4_bit;
sbit LCD_EN_Direction at TRISB5_bit;
sbit LCD_D4_Direction at TRISB0_bit;
sbit LCD_D5_Direction at TRISB1_bit;
sbit LCD_D6_Direction at TRISB2_bit;
sbit LCD_D7_Direction at TRISB3_bit;


char text1[]="D";


void main() {
Lcd_init();

Lcd_Cmd(_LCD_CLEAR);
Lcd_Cmd(_LCD_CURSOR_OFF);

while(1){

Lcd_Out(1,10,text1);
Lcd_Cmd(_LCD_CLEAR);
Lcd_Out(2,10,text1);
Lcd_Cmd(_LCD_CLEAR);
Lcd_Out(3,10,text1);
Lcd_Cmd(_LCD_CLEAR);
Lcd_Out(4,10,text1);
Lcd_Cmd(_LCD_CLEAR);
}

}
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top