A library can simplify an huge Arduino code.
HOWDOES AN LIBRARY WORK?
A library has mainly 3 files and 2 extras
- A Header File (.h) - This contains the library's definitions
- Source Code (.cpp) - This contains the library's code
- A Keyword file (.txt) - This contains the keywords used in the library
- A Readme file (.txt) - This contains other information about the library (Revision Number, TODO's, etc.)
- Examples (.ino) - These are to show a user how to operate the library
The purpose of my library is use a pushbutton and on and off a Led without writing a big code but just intializing the pins the button and LED connected
How to create a zip file?Take the button.h and c++ source file and keywords txt and put it in a folder then right click and click the send to and click zip/compressed file
Comments
Please log in or sign up to comment.