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.

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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top