resolve the header problem

Status
Not open for further replies.

sudipta117

Newbie level 3
Joined
Nov 28, 2009
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
india
Activity points
1,302
i have a sample code , i have attached with , it has header files called "lcd.h" and "lcdcmd.h". how do I compose such headers to suit my requirement?
 

A header without the library or the code is useless.
 

You have to include ur header file in ur main program & then compile.

Let say
#include "lcd.h"
#include "lcdcmd.h"
main()
{
----------
-----------
}

But before that u have to make copy of lcd.h & lcdcmd.h file in the same folder where ur main program is there

Regards
Chanchal
 

In lcdcmd.h may contains the commands to LCD, like clear LCD screen,position the cursor,write to LCD like that.....
and in LCD.h contains intialisation of LCD ports like using 8 bit data segments or 4 bit data segments. According to ur sample code make these header file which include commands and intialisation............
 

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…