LightPiIO  1.0.0
Light library for bus communications on *Pi platforms.


LightPiIO is a multi-language library for embedded platform (such as RaspberryPi, OrangePi, BananaPi, TomatoPi, ...). It is light and not restricted to simo hardware, using directly device file instead of windows-like naming. As soon as you see the device file, LightPiIO can use it!

The source-code is hosted on gitlab at

Building LightPiIO

First, you need to install library depedencies, for package, and optionnaly to build documentation (using doxygen)

$ sudo apt-get install make cmake openjdk8 openjdk8-jre gcc g++
$ sudo apt-get install doxygen graphviz font-bitstream-type1 ghostscript-fonts

Then, clone git repository

git clone

Then, create build directory and build

$ mkdir build && cd build
$ cmake ../lightpiio
$ make
$ make doc

Cross-compiling support

If you wish to cross-compile (build for an other cpu architechture), you can specify following options to cMake:

$ cmake ../src -DCROSS_COMPILER_PREFIX=arm-linux-gnueabihf- -DCMAKE_TOOLCHAIN_FILE=../src/cMake/toolchain.cmake

This will build the library for ARM EABI5, using arm-linux-gnueabihf-gcc as c compiler.


LightPiIO provide interfaces for:

  • java

Soon available interfaces:

  • C
  • C++
  • Python