Here i am giving u only the code you if u want you can get the ckt diagram from below link.
CKT DIAGRAM Go
code is as follows....
//works
#define KB_PORT_SET DDRB
#define KB_PORT_OUT PORTB
#define KB_PORT_IN PINB
#define F_CPU 1000000UL
#define ENDCHAR 0x80
#include <avr/io.h>
#include <util/delay.h>
#include "lcd4.h"
void delayms(int millies){
while(millies){
_delay_ms(1);
millies--;
}
}
int main(){
int i;
DDRD=0xFF;
PORTD=0x00;
InitLCD();
char str[] ={"ROGER FEDERER CLINCHES THE VICTORY OUT OF DEN"}; // running diaplay
char ank[]={" "};
//char har[]={" "};
while(1){
SendCommand(0xC0);
for(i=46;i>0;i--){
SendString(str,2,i); // the format of Sendstring( str, row,position)
//SendString(har,2,0);
delayms(300);
SendString(ank,2,i);
}
}
}
You can get the Header file from i.e lcd.h from below link.
LCD.H Go
CKT DIAGRAM Go
code is as follows....
//works
#define KB_PORT_SET DDRB
#define KB_PORT_OUT PORTB
#define KB_PORT_IN PINB
#define F_CPU 1000000UL
#define ENDCHAR 0x80
#include <avr/io.h>
#include <util/delay.h>
#include "lcd4.h"
void delayms(int millies){
while(millies){
_delay_ms(1);
millies--;
}
}
int main(){
int i;
DDRD=0xFF;
PORTD=0x00;
InitLCD();
char str[] ={"ROGER FEDERER CLINCHES THE VICTORY OUT OF DEN"}; // running diaplay
char ank[]={" "};
//char har[]={" "};
while(1){
SendCommand(0xC0);
for(i=46;i>0;i--){
SendString(str,2,i); // the format of Sendstring( str, row,position)
//SendString(har,2,0);
delayms(300);
SendString(ank,2,i);
}
}
}
You can get the Header file from i.e lcd.h from below link.
LCD.H Go
No comments:
Post a Comment