Robotic HomeLab Library

HomeLab library is composed of several C language header files (with “.h” extension) and one static library file (with “.a” extension“). Upon library installation, all these files are copied to the AVR-GCC subdirectories where the compiler finds them automatically. The user does not have to copy these files to his or her program folder.

HomeLab library source code files

Step-by-step AVR development software installation instructions for Windows and Linux are written in the first chapter of practical examples. Although different practical examples use various parts of the library, all of them must include a static library (”.a“ file) in the project. Only header files can be included selectively. Header files which are directly related to the AVR microcontroller are in the “homelab” folder, HomeLab module specific files are in the “homelab/module” folder. Both these folders are in the compiler's root folder, and to include the files from them, less-than and greater-than signs are needed to specify the path. An example of how to include AVR pins and HomeLab motors library header files:

#include <homelab/pin.h>
#include <homelab/module/motors.h>

If HomeLab library is not used, then the following avrlibc header file needs to be included into the project:

#include <avr/io.h>

In the HomeLab library, this file is already included in the pin.h file.

HomeLab library installer is freely available on the HomeLab web-page. Users who are interested in customizing the library can also download the source code for it. The following chapters describe the functionality of the library.

en/software/homelab/library.txt · Last modified: 2023/01/25 10:00 (external edit)
CC Attribution-Share Alike 4.0 International Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0