- This topic has 1 reply, 2 voices, and was last updated 11 years, 6 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
|
Microcontroller › AVR › How to make a set of functions as library for AVR microcontrollers
hi guys,
I have written a set of functions for 16×2 lcd interfaced with Atmega8. Its working fine.
but instead of including the functions in the main code i want it to be a library so that i
can use #include”LCD.h” to use those functions. how can i do that?? help please..
Hi Prajwal,
It is simple. Create a new file and cut paste all the function declerations and defenitions in it. Save the file with extension .h, say ‘lcd.h’. Make sure that you are saving the file in the same folder where your file having main() function exists.