#include is used to include outside libraries in your sketch. This gives the programmer access to a large group of standard C libraries (groups of pre-made functions), and also libraries written especially for 86Duino.

The main reference page for DJGPP C libraries (DJGPP is the compiler that the 86Duino uses) is here.

Note that #include, similar to #define, has no semicolon terminator, and the compiler will yield cryptic error messages if you add one.


This example includes a library to read the internal BIOS tick counter, which is the number of 18.2 Hz ticks since midnight.

#include <bios.h>

long ticks = biostime(0, 0);

Language Reference Home

The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.