EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / How to make a set of functions as library for AVR microcontrollers

How to make a set of functions as library for AVR microcontrollers

|

Microcontroller › AVR › How to make a set of functions as library for AVR microcontrollers

  • This topic has 1 reply, 2 voices, and was last updated 12 years, 9 months ago by AJISH ALFRED.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • July 11, 2013 at 6:53 am #2531
    prajwal
    Participant

    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..

    July 12, 2013 at 4:45 am #10131
    AJISH ALFRED
    Participant

    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.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • Voltage comparator circuit verification April 10, 2026
  • Help with a coffee machine circuitboard April 10, 2026
  • DS3231 RTC + 24C32 EEPROM I²C Module (PIC18) April 9, 2026
  • Bot checks April 9, 2026
  • Heltec V3 GPS repeater. April 9, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise