mraa  2.0.0
Low Level Skeleton Library for Communication on GNU/Linux platforms
libmraa - Low Level Skeleton Library for Communication on GNU/Linux platforms

Libmraa is a C/C++ library with bindings to Python, Javascript and Java to interface with the I/O on Galileo, Edison & other platforms, with a structured and sane API where port names/numbering matches the board that you are on. Use of libmraa does not tie you to specific hardware with board detection done at runtime you can create portable code that will work across the supported platforms.

The intent is to make it easier for developers and sensor manufacturers to map their sensors & actuators on top of supported hardware and to allow control of low level communication protocol by high level languages & constructs.


These interfaces allow you to interact with all libmraa functionality. The C++ classes directly wrap the C API and provide a near 1:1 mapping of functionality.

C API Modules C++ API Classes
gpio Gpio class
led Led class
i2c I2c class
aio Aio class
pwm Pwm class
spi Spi class
uart Uart class
common common

Hello Mraa

#include "mraa.h"
main(int argc, char** argv)
const char* board_name = mraa_get_platform_name();
fprintf(stdout, "hello mraa\n Version: %s\n Running on %s\n", mraa_get_version(), board_name);

Supported platforms

Specific platform information for supported platforms is documented here:


Sometimes it just doesn't want to work, let us try and help you, you can file issues in github or join us in mraa on freenode IRC, hang around for a little while because we're not necessarily on 24/7, but we'll get back to you! Have a glance at our Debugging libmraa page too


More information on compiling is Building libmraa page.


See Static code analysis page.


Please see the Contributing to libmraa page, the libmraa Internals page may also be of use.

API Changelog

Version Changelog here.