"lcd.h" for 2x16 LCD and "delay.h"

Status
Not open for further replies.

Eng.Wad

Member level 2
Joined
Mar 3, 2012
Messages
43
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Activity points
1,551
Hi everyone,

I'm looking forward to interfacing LCD with PIC18f2550.
I found this code.
Code:
#include <htc.h>
#include "lcd.h"
#include "delay.h"

/*******CONFIGURATION SETTINGS********/
#pragma config FOSC = HSPLL_HS
#pragma config PWRT = OFF
#pragma config BOR = OFF
#pragma config WDT = OFF
#pragma config LVP = OFF
/*************************************/


void main()
{
    TRISC = 0x00;
    TRISD = 0x00;
    LCD_Init();
    while(1)
    {
        DelayMs(1);
        LCD_GOTOXY(1,4);
        LCD_Str("PIC18F4550");
        DelayMs(1000);
        LCD_GOTOXY(2,5);
        DelayMs(1);
        LCD_Str("LCD TEST");
        DelayMs(1000);
        LCD_Clear();
    }
}


The website didn't upload "lcd.h" neither "delay.h" .. can anybody provide me with them

I appreciate your effort.

Thanks
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…