mraa  0.4.5
Low Level Skeleton Library for Communication on GNU/Linux platforms
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
mraa Documentation

Library in C/C++ to interface with Galileo & other Intel platforms, in a structured and sane API with port names/numbering that match boards & with bindings to javascript & python.

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.

API

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
i2c I2c class
aio Aio class
pwm Pwm class
spi Spi class
uart Uart class
common common

Hello Mraa

#include "mraa.h"
int
main(int argc, char **argv)
{
fprintf(stdout, "hello mraa\n Version: %s\n", mraa_get_version());
return 0;
}

Supported platforms

Specific platform information for supported platforms is documented here:

ENV RECOMENDATIONS

All of these are 'optional', however they are recommended. Only a C compiler, cmake, libm and pthreads are technically required to compile.

COMPILING

More information on compiling is Building libmraa page

CONTRIBUTING

Please see the Contributing to libmraa page

API Changelog

This changelog is meant as a quick & rough guide to what has changed between versions. The API is now fairly stable but when new calls/features are added they are listed here. Anything pre 0.2.x is ignored.

0.4.5

0.4.4

0.4.3

0.4.2

0.4.1

0.4.0

0.3.1

0.3.0

0.2.9

0.2.8

0.2.7

0.2.6

0.2.5

0.2.4

0.2.3

0.2.2